尝试在 appharbor 上启动我的项目,但失败了:
"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)
它可以很好地构建在我的电脑上,有什么想法我错过了吗?
.NET Framework 版本为 4.0
最佳答案
我从头开始创建项目,然后比较并发现:
<Content Include="obj\Debug\build.force" />
它如何出现在那里,不知道,但这就是原因。
关于msbuild - Appharbor 无法发布 asp.net mvc 4 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11953741/