Mono 2.10の下で働くASP.NET MVC 3プロジェクトを取得することは可能ですか?

StackOverflow https://stackoverflow.com/questions/5019191

質問

Mono 2.10のリリースノートASP.NET MVC 3.0および Razor xsp

新しく作成されたASP.NET MVC 3.0のデフォルトプロジェクト(Visual Studio 2010で作成されたMONODEVOLOP 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