ASP.NET MVC2 depends on which version of the .NET Framework?
You can target your MVC 2 project to .NET 3.5 SP1 or superior. However using .NET 4.0 grants you some functionality, for example you can write <%: someString %>
instead of <%= Html.Encode(someString) %>
.
For completeness sake:
MVC 1:
System Requirements Supported Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP .NET 3.5 SP1. Visual Studio 2008, Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 are required to use certain parts of this feature.
MVC 2 RTM:
System Requirements Supported Operating Systems: Windows 7; Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP .NET 3.5 SP1. Visual Studio 2008, Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 are required to use certain parts of this feature.
MVC 3 Preview 1:
Supported Operating Systems: Windows 7; Windows Server 2003; Windows Server 2008; Windows Vista .NET 4, ASP.NET 4, Visual Studio 2010 or Visual Web Developer 2010 are required to use certain parts of this feature.