mono 2.10的发行说明建议支持ASP.NET MVC 3.0和 razor 使用 xsp

在开设新创建的ASP.NET MVC 3.0默认项目(使用Visual Studio 2010创建)在Monodevelop 2.4.2(Mac OS X)中,缺少以下DLL:

System.Web.Entity
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages
.

所有我替换为从我的Windows安装中获取的DLL。项目构建,但我在尝试调试项目时收到以下错误消息:

Adding applications '/:.'...
Registering application:
    Host:          any
    Port:          any
    Virtual path:  /
    Physical path: /.../Mvc3Test/
Handling exception type TargetInvocationException
Message is Exception has been thrown by the target of an invocation.
IsTerminating is set to True
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
.

在制作这些替换之前,应用程序运行但显然具有缺少的参考错误。这将建议新DLL中的某些东西拧紧XSP服务器。

我做错了什么?我太简单了吗?我是mono和 monodevelop ,但我成功地创建,构建和调试MVC 2.0项目随着我目前安装Monodevelop的项目。

有帮助吗?

解决方案

I'm elated. The new version of Mono, 2.10.1, fixed the issues with ASP.NET MVC 3.0. It is running without a hitch.

其他提示

Works fine, have a look at http://erikzaadi.com/2011/03/02/installscripttorunaspdotnetmvc3withrazoronnginxataopensuseserver/

The only trick is copying the correct assemblies...

If you need the solution, it's available at http://labs.erikzaadi.com/monoOnSuse/RazorOnMonoSolution.zip

Hope this helps.

[Note] You don't need openSuse to run the solution, just a mono 2.10 environment, works fine on mac as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top