开发者

How to select the version of ASP.NET file at compile time in Visual Studio 2008

开发者 https://www.devze.com 2023-03-16 07:56 出处:网络
I am using Visual Studio 2005, .NET Framework 2.0. Now I started using Visual Studio 2008 (.NET Framework 3.5) too. I am getting an error when I am running the application saying that it could not loa

I am using Visual Studio 2005, .NET Framework 2.0. Now I started using Visual Studio 2008 (.NET Framework 3.5) too. I am getting an error when I am running the application saying that it could not load the typ开发者_Go百科e. The error page shows Version Information: Microsoft .NET Framework Version:2.0. Why is it so? I'm running in Visual Studio 2008.


Visual Studio 2008 support Multi-Targeting, meaning that you can develop applications against different versions of the .NET Framework using the same IDE.

If your solution was created with Visual Studio 2005, by default it's going to continue using the .NET Framework 2.0 when opened in Visual Studio 2008.

You'll have to manually change the Target Framework version on your project's properties to .NET Framework 3.5.

0

精彩评论

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

关注公众号