Webapplication.targets在OS X 10.7.4中的MonoDevelop建设MVC4项目时失踪 [英] Webapplication.targets missing when building a MVC4 project in MonoDevelop on OS X 10.7.4

查看:192
本文介绍了Webapplication.targets在OS X 10.7.4中的MonoDevelop建设MVC4项目时失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立使用单声道2.10.9在OS X 10.7.4测试MVC4项目。我创建在Visual Studio中使用的git从Windows转换源$ C ​​$ C到Mac OS X,然后我跑xbuild为.nuget包还原,但是当我建立MonoDevelop中我得到一个奇怪的错误一个新的空MVC4 Web应用程序:

I am trying to build a test MVC4 project on OS X 10.7.4 using Mono 2.10.9. I created a new empty MVC4 web application in Visual Studio used git to transfer the source code from Windows to Mac OS X. I then ran xbuild for .nuget package restore, but when I build in monodevelop I get a weird error:

/Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj:错误: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets:项目文件无法导入,它被用进口/Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj:导入的项目: \"/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets\"不存在。 (出神)

/Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Error: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets: Project file could not be imported, it was being imported by /Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Imported project: "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets" does not exist. (Spellbound)

这到底意味着什么?这也发生在我简单地创建在MonoDevelop中和preSS构建一个新的MVC项目。任何想法?

What could this mean? This also happens when I simply create a new MVC project in MonoDevelop and press build. Any ideas?

推荐答案

Mono的MSBuild的实现(xbuild)没有目标的实现为ASP.NET项目。

Mono's MSBuild implementation (xbuild) does not have an implementation of the targets for ASP.NET projects.

您可能能够建立MonoDevelop中。请确保您有实验xbuild集成MonoDevelop的preferences关闭。

You might be able to build in MonoDevelop. Make sure you have the experimental xbuild integration turned off in MonoDevelop preferences.

这篇关于Webapplication.targets在OS X 10.7.4中的MonoDevelop建设MVC4项目时失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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