加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

ASP.NET发布尝试复制不存在的文件

发布时间:2020-12-15 22:52:57 所属栏目:asp.Net 来源:网络整理
导读:我试图在VS2010中发布一个ASP.NET项目,并得到以下错误: Copying file binCKFinder.pdb to objReleasePackagePackageTmpbinCKFinder.pdb failed. Could not find file ‘binCKFinder.pdb’. 我试过使用CKFinder的试用版(用CKEditor),但是我支持它.我
我试图在VS2010中发布一个ASP.NET项目,并得到以下错误:

Copying file binCKFinder.pdb to objReleasePackagePackageTmpbinCKFinder.pdb failed. Could not find file ‘binCKFinder.pdb’.

我试过使用CKFinder的试用版(用CKEditor),但是我支持它.我删除了对CKFinder的所有引用,包括文件夹和引用 – 或者我想.

我试着看这个错误,并且空出来了.这让人很沮丧.

为什么会出现这个错误?想法?

提前致谢 . . .

解决方法

我也碰到了这个问题.我正在收到以下错误,当试图发布MVCForum 1.7:

Copying file App_DataNuGetBackupHello.txt to objReleasePackagePackageTmpApp_DataNuGetBackupHello.txt failed. Could not find file ‘App_DataNuGetBackupHello.txt’.

Fran?oisBreton的评论帮助我实现了解决方案.

这很简单:

使用文本编辑器打开.csproj文件(记事本,记事本; Visual Studio将其作为项目打开

按Ctrl F并搜索问题的文件.在我的情况下,文件是“Hello.txt”,不带逗号.

在ItemGroup下,它驻留:

<ItemGroup>
    <Content Include="App_DataNuGetBackupHello.txt" />
    <Content Include="ContentadminAdmin.css">
      <DependentUpon>Admin.scss</DependentUpon>
    </Content>
...More code omitted due to brevity.

我删除了一行,瞧瞧! Visual Studio允许我在发布之前预览!

它会像这样结束:

<ItemGroup>
    <Content Include="ContentadminAdmin.css">
      <DependentUpon>Admin.scss</DependentUpon>
    </Content>
...More code omitted due to brevity.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读