尝试发布时的输出:
2>Copying all files to temporary location below for package/publish:
2>obj\Release\Package\PackageTmp.
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(3010,5): Error : Copying file Images\ajax-loader.gif to obj\Release\Package\PackageTmp\Images\ajax-loader.gif failed. Could not find file 'Images\ajax-loader.gif'.
我在我的解决方案中搜索,并且在任何地方都没有引用ajax-loader.gif。当我双击输出的最后一行时,Visual Studio将我带到Microsoft.Web.Publishing.targets和以下部分:
<CopyPipelineFiles PipelineItems="@(FilesForPackagingFromProject)"
SourceDirectory="$(WebPublishPipelineProjectDirectory)"
TargetDirectory="$(WPPAllFilesInSingleFolder)"
SkipMetadataExcludeTrueItems="True"
UpdateItemSpec="True"
DeleteItemsMarkAsExcludeTrue ="True"
Condition="'@(FilesForPackagingFromProject)' != ''">
<Output TaskParameter="ResultPipelineItems" ItemName="_FilesForPackagingFromProjectTempory"/>
</CopyPipelineFiles>
发生了什么以及我该如何解决这个问题?
答案 0 :(得分:0)
此图片已在项目文件中引用但已被删除。奇怪的是,文件被标记为&#34;不要复制&#34;但是VS发行商仍然希望它存在,然后才会忽略它。