3

Trying to launch my project on appharbor and it fails with this:

"D:\temp\cijsrn4n.1kq\input\TinyBlogMvc4.sln" (default target) (1) -> "D:\temp\cijsrn4n.1kq\input\TinyBlogMvc4\TinyBlogMvc4.csproj" (default target) (2) -> (_CopyWebApplicationLegacy target) -> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplica tions\Microsoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "obj\Debug\build.force" to "D:\temp\cijsrn4n. 1kq\output_PublishedWebsites\TinyBlogMvc4\obj\Debug\build.force". Could not find a part of the path 'obj\Debug\build.force'. [D:\temp\cijsrn4n.1kq\input\TinyBlogMvc4\TinyBlogMvc4.csproj] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplica tions\Microsoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache" to "D:\temp\cijsrn4n. 1kq\output_PublishedWebsites\TinyBlogMvc4\obj \Debug\DesignTimeResolveAssemblyReferencesInput.cache". Could not find a part of the path 'obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache'. [D:\temp\cijsrn4n. 1kq\input\TinyBlogMvc4\TinyBlogMvc4.csproj]

          0 Warning(s) 2 Error(s)

It builds on my pc just fine, any ideas what I'm missing?

.NET Framework version is 4.0

4

3 回答 3

7

我从头开始创建项目,然后比较并发现:

<Content Include="obj\Debug\build.force" />

它是如何出现在那里的,不知道,但这就是原因。

于 2012-08-15T07:46:00.423 回答
4

我有同样的问题,我解决了从.csproj文件中删除这些行:

<Content Include="obj\Debug\AqAUI.csproj.FileListAbsolute.txt" />
<Content Include="obj\Debug\AqAUI.csprojResolveAssemblyReference.cache" />
<Content Include="obj\Debug\build.force" />
<Content Include="obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache" />
于 2016-03-17T21:58:31.823 回答
1

看起来_CopyWebApplicationLegacy您的项目文件中的目标正在引起问题。如果您不需要它,请考虑将其删除。或者,您应该修复路径问题。看起来生成了无效路径:output_PublishedWebsites应该是output\_PublishedWebsites. 常见问题解答中有关于如何调试此类内容的建议

于 2012-08-14T16:53:55.727 回答