Appharbor无法发布ASP.NET MVC 4应用程序 [英] Appharbor fails to publish asp.net mvc 4 application

查看:200
本文介绍了Appharbor无法发布ASP.NET MVC 4应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在appharbor上启动我的项目,但此操作失败:

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

"D:\ temp \ cijsrn4n.1kq \ input \ TinyBlogMvc4.sln"(默认目标) (1)-> "D:\ temp \ cijsrn4n.1kq \ input \ TinyBlogMvc4 \ TinyBlogMvc4.csproj"(默认 目标)(2)->(_CopyWebApplicationLegacy目标)-> C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ WebApplica tions \ Microsoft.WebApplication.targets(178,5):错误MSB3021:无法 将文件"obj \ Debug \ build.force" 复制到"D:\ temp \ cijsrn4n". 1kq \ output_PublishedWebsites \ TinyBlogMvc4 \ obj \ Debug \ build.force". 找不到路径"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):错误MSB3021:无法 复制文件 "obj \ Debug \ DesignTimeResolveAssemblyReferencesInput.cache" 至 "D:\ temp \cijsrn4n.1kq\ output_PublishedWebsites \ TinyBlogMvc4 \ obj \ Debug \ DesignTimeResolveAssemblyReferencesInput.cache".找不到 路径的一部分 'obj \ Debug \ DesignTimeResolveAssemblyReferencesInput.cache'. [D:\ temp \ cijsrn4n. 1kq \ input \ TinyBlogMvc4 \ TinyBlogMvc4.csproj]

"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)

它可以很好地建立在我的PC上,有什么主意我想念吗?

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

.NET Framework版本为4.0

.NET Framework version is 4.0

推荐答案

我从头开始创建了项目,然后进行了比较并发现了这一点:

I've created project from scratch and then compared and found this:

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

它在那里的样子,不知道,但这就是原因.

How it appeared there, have no idea, but that was the reason.

这篇关于Appharbor无法发布ASP.NET MVC 4应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆