I'm just starting to get into ASP.NET MVC, and saw today that the Beta of version 2 has been released.
Should I start on MVC 1 given that there are already a lot of great resources and tutorials? Or should I go straight to MVC 2 to take advantage of whatever improvements have been made?
I'm thinking about breaking this into another question, but I guess the followup question is what are the major differences? Are the version 1 tutorials appropriate to get me into version 2?
Update:
I thought it was worth updating this question to mention that I started running through Scott Guthrie's great NerdDinner tutorial. I highly recommend it.
After running through that, I started using it in my own project and almost immediately hit a snag. I wanted to reuse partials across different areas of my site. If the partial belongs to a different controller, no can do. However, MVC 2 has Html.RenderAction
which solves the problem for me.
Personally I would forget 1 and just jump in with 2. By the time you are finished with any project, 2 will probably be out of Beta. Most of the MVC1 tutorials will be generally applicable to 2. If something doesn't work just check if it's down to a difference between the versions. (In fact if you stick with 1 you are not guaranteed that all the tutorials will be 100% acurate anyway, as many tutorials relate to pre-release versions of 1). 2 adds some handy features like Areas, which you are likely to want to use.
Things seem to be improved in MVC 2 but a grounding in MVC 1 will not hurt at all; in fact it will probably be to your advantage. After you have used the MVC framework for a little while, you might find (like I did!) that you want to use it in your production work. I try to avoid beta in my production stuff so to this end, I would advise jumping on MVC 1; you can still check out the MVC 2 beta as they install side-by-side fine.
Enjoy!
Dan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With