问题描述
我想建立使用单声道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\"不存在。 (出神)
这到底意味着什么?这也发生在我简单地创建在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项目时失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!