What are the requirements for the upcoming .NET 4 release? Searched around for this and couldn't seem to find a definitive answer. Specifically…
- Will clients have to upgrade their .NET Framework CLR (like from 1.1 to 2.0) to run 4.0-targeted applications?
- Will ASP.NET require a framework upgrade or will behavior be similar to 2.0 running 3.5 apps?
Best Solution
Yes, provided you target .NET 4.0 which has a new CLR version. However, you can target pre-4.0 frameworks to avoid this and run with the previous CLR version.
Check out Scott Guthrie's blog post: Multi-Targeting Support (VS 2010 and .NET 4 Series).
In that post Scott targets the .NET 2.0 and midway through the post there's a screenshot showing ASP.NET running on 2.0 and he writes:
The post ends with targeting .NET 4.0 and a similar screenshot showing ASP.NET running on 4.0.
Scott's post above covers this. Again, it depends on what you target.
In addition, the Multi-Targeting section of the ASP.NET 4.0 whitepaper mentions the ability to use the new ASP.NET 4.0 targetFramework attribute in the Web.config compilation element:
<compilation targetFramework="4.0"/>
. If you omit it then the target framework is inferred. However, there are other considerations to targeting a framework, for example:For more considerations visit the aforementioned link.