msbuild - Appharbor 无法发布 asp.net mvc 4 应用程序

标签 msbuild appharbor

尝试在 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/

相关文章:

visual-studio - VS/MSBUILD : Copy output files of sub-project without adding reference to exe

c++ - MSBuild.exe 不并行构建项目

MSBuild 干净目录字符串

asp.net - 持久身份验证 token 过期

msbuild - 维护持续集成的更好方法?

c# - Web 部署项目是否使用 x86 构建配置

asp.net-mvc - MVC 编辑器模板在部署后未触发

c# - 无法加载文件或程序集 'System.Net.Http' 或其依赖项之一

asp.net-mvc-3 - SQL CE 部署 - AppHarbor - 无法加载 SQL Server Compact 的 native 组件

ravendb - AppHarbor + RavenDB - EsentFileAccessDeniedException