Is it possible to compile .NET 1.1 in Visual Studio 2008?
I have an ASP.NET 1.1 website and was recently upgraded to Visual Studio 2008. It looks like after compiling my projects into .dll's, that they are not working and from what I've gathered, it seems that it's due to VS2k8 not being able to target .NET 1.1. I still have Visual Studio 2003 installed, so I can compile my projects with that, but I'm wondering if there is any way to compile these i开发者_开发技巧n Visual Studio 2008.
No, the minimum you can target is .NET 2.0. Why not just upgrade the project to .NET 2.0 or better yet 3.5?
The change in ViewState alone (never mind the other benefits) is one reason to do it.
you can't as pet Scott Gu
but this article gives you a work-around
This is the sort of thing that MSBee was created to address (albeit for Visual Studio 2005). The same can be applied to Visual Studio 2008. See this article for details on how to set it up as well as limitations that you might consider:
http://devlicio.us/blogs/ziemowit_skowronski/archive/2008/08/22/working-with-net-1-1-in-visual-studio-2008-and-team-server.aspx
No you can only target .NET 2.0, 3.0 and 3.5 (have a look at the properties of your project).
This will also be true for VS 2010 (of course adding .NET 4.0 to the list), as described by Scott Guthrie.
Yes there is, but its a hack. There is a blog article here on how to do it with a beta edition of VS2005 here - http://blogs.msdn.com/jomo_fisher/archive/2005/04/22/410903.aspx You might be able to adapt this to work with VS2008.
My recommendation however would be to either use VS2003 or .Net 2.0.
There's the line:
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
in the csproj file.
I wouldn't recommend it, but you could try setting the value to v1.1. However, I suspect it would cause more problems than it would solve.
I would go with RichardOD's suggestion and either bite the bullet and upgrade or find a version of Visual Studio 2005.
This is not a supported operation in Visual Studio 2008. It only supports compiling to the 2.0 and 3.5 framework.
精彩评论