开发者

Replacing windows server 2008 with linux for asp.net mvc applications

If I write an asp.net mvc 3 application, using .net 4 clas开发者_如何学编程ses. Maybe some f# codes, also. Will I be able to host it on linux(mono)?


You can always try to use MOMA, because it's never really recommended to run apps that you developed for .Net on Windows directly through Mono, it might not give the exact expected results. Make sure that you checked for compatibility using MOMA before doing anything.

More about MOMA


As long as you use the latest version of mono it works pretty well. Note that depending on the linux distribution you are using you may need to build mono from source rather than using a packaged version.

However, you need to make sure you test everything on mono during development. While pretty much everything in .net 4 is possible in mono, linux and windows are very different platforms, so there will always be some things that need to be handled differently. Also, there are a few things where .net and mono have slightly different implementations. For example setting a value in a dictionary while iterating over that dictionary will work in .net but cause an exception in mono - it's trivial to work around, but not the sort of thing you want to be tracking down in a hosted app if you don't have a good mono development environment set up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜