Using VS2008 to Target .NET Framework 2.0 with ASP.NET AJAX

As I mentioned last month, VS 2008 fully supports building applications for .NET Framework 2.0...   This is very important as it will take time for some hosters and IT organizations to fully deploy .NET Framework 3.5, but you don't want that to block you from taking full advantage of the cool features in VS 2008

Today we released ASP.NET 2.0 AJAX Templates for VS2008.  This release contains project templates for using Visual Studio 2008 or Visual Web Developer 2008 to create new web sites and web applications with ASP.NET AJAX Extensions features. The project templates contain specific references to assemblies in .NET Framework 2.0 and ASP.NET 2.0 AJAX Extensions 1.0.

Download the ASP.NET 2.0 AJAX Templates for VS2008!

To try these out, make sure you have ASP.NET AJAX Extensions installed, then install the ASP.NET AJAX Templates for Visual Studio 2008.  

Then, go to File->New Project and select .NET Framework 2.0 as the target runtime.  That will filter down the options and you should see "AJAX 1.0-Enabled ASP.NET 2.0 Web Application".  Select it.

 

image

 

Notice the assembly reference in web.config is fixed up to be the 1.0 version number...

 <system.web>
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" 
             assembly="System.Web.Extensions, Version=1.0.61025.0, ...
</controls> </pages>

Now you are all set up to get the power of developing with VS 2008, but target .NET Framework 2.0.

Please let me know if you have any questions or comments.

 

Speaking of VS 2008 enhancements for Web Developers, I also encourage you to check out the Web Deployment Project release for VS2008..  Web Deployment Projects (WDP) for Visual Studio 2008 - December 2007 CTP Released

thanks!

Published 19 December 07 07:34 by BradA
Filed under: , ,

Comments

# Geek Lectures - Things geeks should know about » Blog Archive » Using VS2008 to Target .NET Framework 2.0 with ASP.NET AJAX said on December 19, 2007 10:44 PM:

PingBack from http://geeklectures.info/2007/12/19/using-vs2008-to-target-net-framework-20-with-aspnet-ajax/

# Shail said on December 20, 2007 4:52 AM:

Hello Brad,

Thanks for a nice post.

My question is, I have a solution developed in VS 2005 (.NET 2.0 ). it has 3 web sites and 2 class library project.

That solution is also source controlled with VSS 2005.

Now when I open this project in VS 2008, it starts the migration wizard. and if I completes that wizard and check in, other developers in my team are not able to

open that in their VS 2005. I am the only one who is using VS 2008. As I am Solution Architect in team, I need to open all portions of the solution.

How can I skip that Wizard and still open the VS 2005 project in VS 2008 and traget .NET 2.0.

Thank you

# Mark Hildreth said on December 20, 2007 7:32 AM:

Brad,

I'm facing the same challenge as Shail. Any advice would be appreciated. Thanks in advance,

-Mark

# LA.NET [EN] said on December 20, 2007 8:22 AM:

Brad Abrams has announced new templates for targeting ASP.NET 2.0 from Visual Studio 2008 .

# Stuart said on December 20, 2007 8:25 AM:

@Shail:

Before you open up your solution in VS2008, make a copy of the .sln file and append a "_2008" or something to it. So now you have 2 solution files that contain the same stuff. Open the new solution and let VS2008 migrate that one only. So now you can open your project in VS2005 and VS2008 with diff .sln files. Everyone is happy.

# Joteke's Blog said on December 20, 2007 11:31 AM:

MS has released ASP.NET 2.0 Ajax templates for VS2008. See: http://blogs.msdn.com/brada/archive/2007/12/19/using-vs2008-to-target-net-framework-2-0-with-asp-net-ajax.asp

# Carlos Rubalcava said on December 20, 2007 2:21 PM:

Shail--

I ran into the same issue the day VS2008 was launched and ScottGu pointed me to a couple of resources.  Here's the link to his comments.

http://weblogs.asp.net/scottgu/archive/2007/11/19/visual-studio-2008-and-net-3-5-released.aspx#5288996

Basically you'll need a separate solution file for VS2008.  I just copied the VS2005 and edited the .sln file to change the version number and product name to match VS2008 (that's the only thing the conversion wizard did).  It also adds a ToolsVersion attribute to the project files, but you should still be able to open them with VS2005.  Worked for me.

# Bilal Haidar [MVP, MCT] said on December 20, 2007 6:29 PM:

Microsoft released recently templates for VS 2008 that you can use to create websites or applications

# JesseZhao said on December 20, 2007 7:20 PM:

前段时间想做个博客系统,用着vs2008很顺手,所有准备在上面开发。在选择JS框架的时候看重了asp.netajax,但是后来查阅资料,发现vs2008下面开发的asp.netajax程序在.n...

# ASPInsiders said on December 21, 2007 12:43 PM:

Brad Abrams has announced new templates for targeting ASP.NET 2.0 from Visual Studio 2008 .

# Rob Zelt - Lighting Up The Web said on December 21, 2007 3:38 PM:
# sara said on March 6, 2008 5:15 AM:

i want to convert my framework version from 3.5 to 2.0

New Comments to this post are disabled

Search

Go

This Blog

Syndication

Page view tracker