问题
I have an ASP.NET MVC1 project and want to upgrade it directly to MVC3. I assume that there are two paths:
- Upgrade directly from 1 to 3
- Upgrade to 2 and then do a second upgrade to 3
Which is the path most traveled?
回答1:
If you are using the ASP.NET Project upgrade tool you can only do the second path right now as stated in this blog:
The tool does not support Visual Studio 2008 solutions, MVC 1 projects, or projects targeting .NET 3.5. If you have a MVC 1.0 project you can use the old version of this tool to convert it to MVC 2.
I'm assuming you could manually upgrade directly to MVC 3, but why go through the hassle when you can run two wizards to upgrade the project for you.
来源:https://stackoverflow.com/questions/4888810/how-do-you-directly-upgrade-asp-net-mvc1-to-mvc3