Charles Young

  Home  |   Contact  |   Syndication    |   Login
  201 Posts | 64 Stories | 521 Comments | 373 Trackbacks



Image Galleries

Alternative Feeds

BizTalk Bloggers

BizTalk Sites

CEP Bloggers

CMS Bloggers


Other Bloggers

Rules Bloggers

SharePoint Bloggers


WF Bloggers

The recent release of Visual Studio 2008 and .NET Fx 3.5 is causing some confusion.    Microsoft released these two technologies together for good reason.   The wonderful new LinQ technologies introduced in .Net 3.5 rely on explicit compiler-level support, and therefore require LinQ aware compilers in Visual Studio.   The new version of visual Studio provides these compilers, allowing developers to take advantage of the new monadic syntax. In addition, Visual Studio has several new features designed to make it easier to exploit NET 3.5 features such as Ajax and the foundation libraries (WCF, WF and WPF).

The problem is that by tying the release of .NET 3.5 to Visual Studio 2008, the impression is given that, unless you are ready to upgrade to the new version of the IDE, there is no point thinking about upgrading to the new version of the framework.    This is simply not the case.   The .NET framework does not have any built-in dependency on Visual Studio, let alone a specific version of Visual Studio.   More to the point, Microsoft has long since split the versioning of the framework from the versioning of the run-time environment. .NET 3.5 continues to exploit version 2.0 of the CLR. Visual Studio 2005 is perfectly happy to compile your code against .NET 3.5 assemblies.   They are just assemblies.   Even more compelling is the realisation that most of the assemblies in .NET 3.5 are identical to those in .NET 3.0 (same version number).   There are some new assemblies with new features. .NET 3.5 is just .NET 3.0 with extra stuff.

Why is this important?   Well, not everyone is ready to upgrade to Visual Studio 2008.   Apart from the expense this involves, consider the dilemma of BizTalk Server developers.   Currently, there are no Visual Studio 2008 bindings for BizTalk Server (i.e., you can't create BizTalk Server project types in the new IDE).   This, we are assured, will be addressed at some point, but that could be months away.    For the time being, BizTalk developers are stuck with Visual Studio 2005 :-( Hence, some people are currently discounting the possibility of using .Net 3.5 because they believe, quite incorrectly, that it requires an upgrade to Visual Studio 2008.

There are issues, of course.   As well as the absence of compiler support for LinQ, Visual Studio 2005 does not have access to various new project and file templates and tools that support the new version of the framework.   Developers may need to do more coding in Visual Studio 2005 than would be necessary in Visual Studio 2008.   This is often a small price to pay, however, in order to access the improvements in 3.5.    As an example, consider the new integration between WF and WCF, provided in the new System.WorkflowServices assembly.   The integration is provided via the new WorkflowServiceHost class and a couple of new activities.   Visual Studio 2008 has new template support for building workflow services, and comes with a very useful new WCF test harness.   However, exploiting this new functionality in Visual Studio 2005 is trivial.   Create a WF workflow library, add a reference to System.WorkflowServices and add the new activities to your tool box.   Finally, use the WCF Service template to add a service class to your project and you are just about in the same position as you would be in Visual Studio 2008 if you used the new Workflow Service project template.   You'll need to write a couple of lines of code to use WorkflowServiceHost to host your service, of course.   Off you go, and enjoy .NET 3.5.

posted on Saturday, December 1, 2007 11:23 AM


# re: Using .NET 3.5 and Visual Studio 2005 12/1/2007 4:47 PM Andy James

Just a small question around VStudio 2008 - can it be used side-by-side with VS 2005?


# re: Using .NET 3.5 and Visual Studio 2005 12/2/2007 10:12 PM Charles Young
Yes, they should work OK side by side. The last time I tried this was months ago with beta 1 of Orcas - worked almost OK, but there was a problem with project properties which was a recognised bug at the time.

# re: Using .NET 3.5 and Visual Studio 2005 12/4/2007 5:14 AM Pallz
Do we have to instruct VS 2005 explicitly to use the new .Net 3.5 framework?
Which compiler is used when we build using VS 2005 IDE (csc of .Net 2.0 or csc of .Net 3.5)?

# re: Using .NET 3.5 and Visual Studio 2005 12/8/2007 4:52 AM Mohamed E.
I am trying to get going from .NET 1.1 to the next level. When I started to get into .NET 2.0, .NET 3.0 came out and now .NET 3.5
what would you recommend me to do? Get into 2.0 first and pick up upward or just go ahead and learn 3.5.


# re: Using .NET 3.5 and Visual Studio 2005 12/8/2007 8:46 AM Charles Young
The jump from version 1.0 to version 2.0 was disruptive, especially as Microsoft changed the entire run-time environment. It was a little like the move we made many years ago from 16 bit to 32 bit platforms. Since then, the runtime environment has remained the same, and subsequent versions has simply added new functionality at the class library level. So, personally, I'd go for the latest and best. .NET 3.5 is .NET 2.0, and .NET 3.0, with more stuff. Look at the assemblies (all the ones starting 'System' that come up in the 'Add Reference' dialogue box) and you will see that the majority are still v2.0.
One thing to consider is that, with new functionality, there may be better ways of doing things in .NET 3.5 than in .NET 2.0. An obvious example would be XLinq. With XLinq you can, for example, create XML without using the XML DOM or XmlWriter. Your XLinq code is quite different to the code you write with those older approaches (it uses functional composition and looks very similar to the actual XML). There is no way you will learn the entire class library in depth (unless you spend many years working on lots of very different projects), so maybe this doesn’t matter, but do be aware of the various options you have. See for a discussion on what XLinq does not give you compared to these older approaches. Another example is the older ASP.NET support for web services compared with the new WCF approach introduced in .NET 3.0. You can still use ASP.NET for web services if you need to , but if you have WCF at your disposal, and free reign to use this technology in your development, then there is little or no need to learn how to create .asmx web services.

# re: Using .NET 3.5 and Visual Studio 2005 12/11/2007 1:34 PM McBIt
The problem with installing VS2008 is the cost of licensing. You don't get the same functionality with the free versions as with VS2005. Upgrading a team of 30 people, for example, may dramatically increase the cost of a project: licensing, time to install and manage manage the upgrade, etc. Having a plug-in that would allow creating and compiling projects with LINQ support could bring the cost of .Net 3.5 upgrade down.

# re: Using .NET 3.5 and Visual Studio 2005 12/11/2007 2:12 PM Charles Young
I doubt they would offer such a plug-in. It would seriously undermine the sales of Visual Studio 2008. Unfortunately, Microsoft remains a commercial company, and not a charity ;-

# re: Using .NET 3.5 and Visual Studio 2005 1/23/2008 3:30 PM Magnus
John, you probably already solved this but anyhow, rightclick on an empty spot of the toolbar and choose "Add Tab", Name it whatever you like, for example .Net 3.5. Rightclick inside the new tab you created and choose "Choose Items". Browse for the .net 3.5-dlls. If you can't add one/many of them try one at a time. I haven't done this myself but this is how to add controls that aren't added during the install. Sounds weird though that Microsofts controls weren't added automatically during the .Net 3.5-install.

# re: Using .NET 3.5 and Visual Studio 2005 1/25/2008 10:52 AM Prasanna Krishnan
Good stuff charles, you made my day. I was about start the migration of existing solutions from VS 2005 to VS 2008.

# re: Using .NET 3.5 and Visual Studio 2005 2/16/2008 3:56 PM Jimit
Hi Charles, just a couple of quick questions about using WF v3.5 in VS 2005. You mentioned several v3.5 specific activities that'd been added but when them to the toolbox all I get are the new Receive and Send activities. Are these the only new activities? How do Receive and Send compare to WebServiceInputActivity and WebServiceOutputActivity from v3.0? When you add a Receive activity to you workflow and subscribe to a particular operation contract, does the plumbing for listening to requests on that operation still get done for you? And how do you host your service using WorkflowServiceHost?
Like the others here we're not quite ready to upgrade to VS 2008, but we probably will some time later during the year. My worry is that of code compatibility for when we do make the switch. VS 2008 does recognize VS 2005 projects doesn't?

# re: Using .NET 3.5 and Visual Studio 2005 3/10/2008 8:53 AM Deem
Hello Charles,
May you kindly provide any input regarding my issue.. i've installed 3.5 .net framework and we are using VS 2005.. in order to make use of its new libraries like System.Linq, System.Core, System.Data.Linq i've added them as references in my web project..
but the compiler has an issue with understanding my new expressions that attempt to use Linq features..


int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

var numsPlusOne =
from n in numbers
select n + 1;

any idea what am i doing wrong?

thank u in advance!!

# re: Using .NET 3.5 and Visual Studio 2005 3/10/2008 10:30 PM Charles Young
Yes, that's to be expected I'm afraid. Installing .NET 3.5 doesn't upgrade the compilers you get with Visual Studio 2005. You have to get VS 2008 if you want to use the new C# or VB.NET syntax. I mentioned this absence of compiler support in the article.

There is, of course, a distinction between sytax that is understood by a compiler, and the underlying libraries and types that the syntax expolits. You still have full access to Linq technologies, but you have to write code using 'standard' syntax.

Here is the above code (plus some additional code to print out the results) written 'long-hand'. This compiles in VS 2005. You need to give your project a reference to System.Core v3.5 and import the System.Linq namespace.

int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

//var numsPlusOne = from n in numbers select n + 1;
IEnumerable<int> numsPlusOne = Enumerable.Select<int, int>(numbers, delegate(int n) { return n + 1; });

foreach (int nNew in numsPlusOne)

# re: Using .NET 3.5 and Visual Studio 2005 3/11/2008 6:15 AM Deem
Dear Charles,
I thank you very much for this clarification.. i was staring at the screen for an hour and searching trying to figure that out!! It makes perfect sense.. i appreceate your time and effort in the example. : )

# re: Using .NET 3.5 and Visual Studio 2005 3/19/2008 5:36 PM Chris
Dear Charles,

I recently got a job as a web developer (my first development job!). I was learning some .Net 2008 for the first week or so and then they told me they wanted to switch back to 2005. i'm having trouble getting this one project to compile w/out linq.

basically i have (using C#)

public class MenuMaker
public Random Randomizer;
// some string arrays here
public string GetMenuItem()
// from the varios arrays return a string displaying a
//random menu item

and then in my form I have:

public FormRandomMenuToday()
MenuMaker menu = new MenuMaker() { Randomizer = new Random()};
label1.Text = menu.GetMenuItem();

Basically the object Initializer, Randomizer = new Random(), doesn't seem to compile and I've tried different things such as MenuMaker menu = new MenuMaker();
menu.Randomizer = new Random();

Anyway, any help you could give me would be appreciated.

# re: Using .NET 3.5 and Visual Studio 2005 3/19/2008 7:00 PM Martin
Hello Chris,

i whould suggest you to initialize the Randomizer in the constructor of the MenuMaker. You hava a constructoer, don't you?

public class MenuMaker
Random Randomizer;
public MenuMaker()
Randomizer = new Random((int)DateTime.Now.Ticks);
public string GetMenueItem()
return Randomizer.Next(1000).ToString();

public Form1()
MenuMaker mnu = new MenuMaker();
label1.Text = mnu.GetMenueItem();

# re: Using .NET 3.5 and Visual Studio 2005 3/20/2008 10:47 AM Charles Young
OK, my blog is clearly leading to misunderstandings, and I need to carefully qualify what is going on here. People need to make a very clear distinction in their minds between different things:

a) The .NET Framework
The framework is chiefly composed of a library of pre-written object orientated code -i.e., a class library, or perhaps more accurately, a set of libraries.

b) The C# and VB.NET compilers
These are written as .Net assemblies. The new compilers are bundled with the framework.

c) The C# and VB.NET editing and compilation support provided in Visual Studio.
Starting with Visual Studio 2008, Microsoft has enhanced these tools so that you can easily target different versions of the framework. This includes targeting different versions of the C# and VB.NET compilers.

Note the following points:

• All .NET 3.5 code complies with the standardised definitions for version 2.0 of the Common Language Runtime. This includes all the code in the class libraries, including Linq, and even the code in the compiler assemblies. Hence, Visual Studio 2005 can access any public members of any public classes anywhere in the library, and can even reach protected and private members via reflection. This is why you can happily exploit WCF 3.5 within Visual Studio 2005.

• Visual Studio 2005 predates .NET 3.5 and therefore its code editing and compilation features do not target or support the versions of the compilers provided with .NET 3.5. Hence, there is no support for new syntax supported by the latest compilers, which is why Chris' code won't compile (it uses the new object initializer syntax).

Syntax supported in a compiler is one thing. The underlying classes and other types exploited by specialised syntax such as Linq are something different. You don't have the ability to use the new Linq syntax in the old version of Visual Studio. You do, however, have the ability to access the underlying class libraries directly using 'traditional' syntax.

Having said all this, I could be irresponsible and point out that Microsoft did release some Linq CTP tooling for Visual Studio 2005. This is still available at:

It may be possible to use this in conjunction with careful changes to Microsoft.CSharp.targets referenced in the MSBuild script contained in your project files in order to convince Visual Studio 2005 to support the latest syntax and compilers. I wouldn't recommend this, as this depends on CTP code, which may not offer complete support for the syntax supported in the release version of Visual Studio 2008, and a degree of black-belt manipulation of the mechanics of Visual Studio. I take no responsibility for any problems people might encounter if they try to get this to work!

# re: Using .NET 3.5 and Visual Studio 2005 3/22/2008 8:50 AM Ashit Barot
Hi Charles,
I have VS 2005 with .Net Framework 2.0 and then i installed C# 2008 Express edition on my computer, it has installed .net framework 3.5 as well.
Now my problem is
I wan to create a new website with WCF service template using VS 2005. But Add new web site doesn't list the 'WCF Service' temlate.

Do i need to download template from internet? or .net framework 3.5 should enable that in VS 2005 IDE?


# re: Using .NET 3.5 and Visual Studio 2005 3/28/2008 6:08 PM David Young
If assemblies in .NET 2.0 and .NET 3.5 have the same name, how does VS know which one to use?

# re: Using .NET 3.5 and Visual Studio 2005 3/28/2008 6:14 PM Charles Young
Simple. They are strong-named assemblies. Their identities include not only the simple name, but also the version number, a culture specifier and a public key (often represented as a short hashed 'public key token). This is one of the most fundamental aspects of code packaging in .NET, and is the basis for side-by-side deployment of versioned releases of the same code.

# re: Using .NET 3.5 and Visual Studio 2005 3/30/2008 8:34 AM Johnnyxp64
There is Still a huge problem with Visual Studio 2005's page properties if you install .net 3.5 with VS2005!

i am missing fields like form startup etc and projects are crushing! if i uninstall .net3.5 all is back to normal, i need Both of them installed at the same time! i dont need vs2008 any solutions found?????????????

# re: Using .NET 3.5 and Visual Studio 2005 3/30/2008 11:25 AM Charles Young
I haven't personally run into these problems. There was an issue with project properties with the first beta or 'Orcas', but that affected 'Orcas', not Visual Studio 2005. Of course, Visual Studio 2005 was never the most bug-free release of Microsoft's IDE. Have others had similar problems?

# re: Using .NET 3.5 and Visual Studio 2005 3/31/2008 9:08 AM johnnyxp64
hi Charles,

so to make it clear, lets say you have a clean installation of Windows x64 or Vista x64 (cause thats my case)
or ok Windows x86

then what is the Proper Order to install them in order to work fine as they work in your system?


0)windows+sps+hotfixes+drivers NO .NET (yet)
then what?
1).NET 3.5
2)Visual Studio 2005 (.net 2.0)
3)Visual Studio 2005 Sp1?


1)Visual Studio 2005
2).Net 3.5?

and what about .net 2.0 service packs?
if i manage to have .net 3.5 working i DONT need to install .NET 2.0 service packs? i am even free to uninstall it completle?

how excactly is this working .net 3.5 is an upgrade if it detects .net 2.0 or a Different stand alone library?

tnx for your time i have just format my system and waiting for your rresponse to go on and continue my project!

tnx a lot

# re: Using .NET 3.5 and Visual Studio 2005 3/31/2008 3:05 PM Charles Young
I'd naturally go for the second option re. installation order on the grounds that this mirrors the order in which the software was released. On much the same grounds, you could install all applicable service packs ( in the order they were released. This would ensure that, if your issues really are due to having .NET 3.5 installed on your machine, at least you will have a build that will probably most closely resembles the test environment that Microsoft used at the time they tested and released 3.5 (actually, I would rather hope that they tested extensively against machine builds that use all kinds of different installation orders).

If you get any hard evidence that .NET 3.5 is sensitive to the installation order of previous versions and service packs, you should report this to MS as a bug. It certainly won't be by design. As I said in the article, most of the assemblies that make up 3.5 are identical to those in 3.0. Most of the assemblies in 3.0 are identical to those in 2.0. It seems that Microsoft has, with each release, placed new functionality into new assemblies and kept existing assemblies unchanged. Quite right too. Despite a previous reply to David's comments, I can't find much evidence that they are actually relying on side-by-side deployment. So, a quick count on my box suggests that the 'System' assemblies break down as follows:

27 assembles from v2.0
11 additional assemblies from v 3.0 (introduction of WCF, WF, WPF and Cardspace)
14 additional assemblies from v 3.5 (introduction of Linq, Ajax, etc)

# re: Using .NET 3.5 and Visual Studio 2005 3/31/2008 4:22 PM Johnnyxp64
first of all i really thank you for your fast replies

ok it worked! but here is what i have found causes the issues.
i want my pc installation to be as clean as possible for professional coding software for 2 major points:
b)controled dependences (.net active x)

1)so what i did in Vista x64 Sp1 with all hotfixes!
2)Visual Studio 2005 + sql2005x64 (without .net 2.0 sdk)
3)Visual Studio 2005 SP1
4)Visual Studio 2005 SP1 hotfix for Vista
5).Net 3.5 (yes thats right No 1.1 no 2.0 no service packs)
6)SQL 2005 x64 +SP2 +Tools
7)restart pc
8)DevXpress 7.22 controls for vs2005 :)

all my project opend Corectly and worked Perfect!
all my Project Framework Properties was there builing was 100% succesful and the all studio performance amazing fast!

i imagine in Windows XP x64 will be even faster..

i rechecked through add-remove software that only one .NET was installed and that was true only 3.5 :)

i reformated and i did all of those from the begging! (yes i am crazy :) BUT this time in STEP 2) i Installed .NET 2.0 SDK all the rest was in the same order.
Now THAT Killed the framework project properties :&
if you have a microsoft link i think thats a worthy BUG to report ;)

so the question remaining is, why i did all those? I want vs2005 to program that works with devexpress 7.22 version and its lighter than vs2008 and i also needed the net3.5 for having Web Express 2.0 installed AND i need to learn how to use LINQ in vs2005.

so i reread your article, but i was a little confused at the and in how i can actually write LINQ code in vs 2005???
sorry bu English isnt my native.

any step by step guide whould be very apriciated by everyone =)

# re: Using .NET 3.5 and Visual Studio 2005 3/31/2008 4:58 PM Johnnyxp64
damn i was wrong :(
.net 2.0 WAS installed!
how exactly can i force my projects to be compiled with .net 3.5 ONLY and not 2.0 as you said 3.5 has what the previous version had + new assemblies so why should i need to have 1.1 sp3 2.0 sp2 and 3.5 ALL installed?


# re: Using .NET 3.5 and Visual Studio 2005 4/23/2008 11:45 AM yakub
I am using vs2005. i installed .net Freawork 3.5 for using the getting few erors like ScriptManager could not found their i need to install any toolkit for that...plz help

# re: Using .NET 3.5 and Visual Studio 2005 4/25/2008 8:26 AM SanthanaM.veradis
In visual studio 2005, file menu-> new-> project-> c#-> there is a 3.0 framework. this is the start of .net framework 3.0..

Like wise after installed 3.5 i didn't see .net framework 3.5 inside vs 2005. then how should i use .net framework 3.5?

Thanks with regards!

# re: Using .NET 3.5 and Visual Studio 2005 4/25/2008 10:09 AM Charles Young
Hi Santhana

It sounds as if ou have installed the Visual Studio 2005 Extensions for .NET 3.0 (WCF &amp; WPF), November 2006 CTP. This was a stop-gap Community Technology Preview that provided an early version of some the project templates planned for Visual Studio 2008. Microsoft never intended this to be used for writing production code, and never updated it.

You certainly won't get a .NET 3.5 set of templates in Visual Studio. Microsoft has not created any such extensions.

The good news is that, because .NET 3.5 is really just .NET 3.0 with additional assemblies, the CTP tools you have installed should still work, even though you have upgraded to .NET 3.5. Of course, some of the tooling may prove buggy, and as I noted in the article above, you won't have any nice compiler support for the new Linq syntax ('syntactic sugar' for using the undertlying Linq functionality introduced into .NET 3.5).

# re: Using .NET 3.5 and Visual Studio 2005 4/29/2008 5:21 PM Ghalib
Hi Charles,
One question comes up again and again and I seem not to get any answer to it. The question was, when I install a 3.5 over a 2.0, does the 3.5 replaces 2.0? I think not, because they have their own folders.
Now, if 3.5 does not replaces 2.0, then, how can I instruct my EXISTIN application (which was built when only 2.0 was present) to start using 3.5 dlls instead of the old ones. Do I change things in my project properties? Do I have to add new references? Do I place code in web.cofig? Or simply I don't do any thing and vs 2005 will figure and use the latest and greatest!

# re: Using .NET 3.5 and Visual Studio 2005 5/6/2008 11:10 AM Guy Ronen
Hi Charles,
I am using VS 2005 + SP1 on Vista for .NET 2.0 development.
Can you summarize the installations i need to develop 3.0 and 3.5 applications?
Can you provide links to the needed downloads and the order in which I should install them?
Thanks in advance.

# re: Using .NET 3.5 and Visual Studio 2005 5/8/2008 3:45 PM james
oh you people don't know what a confused n00b is

i've downloaded and installed 3.5 in hopes of learning how to do it, but i have no idea what to do next, how do you open this up, there is no icon or anything, is there a start>run> something, i am at a complete loss, can anyone help

# re: Using .NET 3.5 and Visual Studio 2005 5/8/2008 7:50 PM Charles Young
Hi Guy

.NET framework 3.5 can be downloaded from

You are using Visual Studio 2005. There is no official support for Visual Studio 2005 extensions for .NET 3.x features, but you might want to download the .NET Framework 3.0 (WCF & WPF), November 2006 CTP in order to get some templates for WCF, WF and WPF. You can get this from Use AT YOUR OWN RISK!

# re: Using .NET 3.5 and Visual Studio 2005 5/8/2008 7:54 PM Charles Young
Hi James

The .NET Framework is a class library. It isn't a product, so you won't see an icon for opening up some application. You need to drop into Visual Studio, create a new project and add references as required to .NET system assemblies. This can include new assemblies introduced in .NET 3.5.

# re: Using .NET 3.5 and Visual Studio 2005 5/9/2008 12:33 AM StarTraX
I too am having problems "seeing" .NET 3.5 from VS2005. I want to upgrade to 3.5 in the hope that it fixes a bug in 2.0 which won't deploy to the web.
I have installed 3.5, but the Help->About Microsoft Visual Studio is still reporting .NET 2.0.50727 SP1. When I deploy, my application is still running with .NET 2.0
Sorry if this is dumb, but I am also a bit new to the game.
I would like to know how to tell VS2005 to use .NET 3.5, not 2.0
Thanks in anticipation.

# re: Using .NET 3.5 and Visual Studio 2005 5/9/2008 2:12 AM Charles Young
Never trust the information you get in the About dialog!

Seriously, though, the versioning around .NET does cause a lot of confusion. The trouble, very simply, is that the term '.NET' is used in different contexts. The main points here are to consider the difference between the .NET runtime environment (the CLR) and the .NET Framework (.NET Fx). When Microsoft released .NET 2.0, both of these were at the same version, which is essentially 2.0.50727. Since then, Microsoft has not updated the runtime (expect in terms of the service pack) but has gone through a couple of versions of the framework. So, yes you are still using version 2.0.50727 of the runtime, but you have upgraded your machine to version 3.5 of the framework.

The framework, essentially, is just code, packaged into a library of assemblies. They are just assemblies - the same kind of thing as the assemblies you create as part of the applications you write. You reference them in your Visual Studio projects in the normal way. Most of the assemblies in .NET Fx 3.5 still have earlier version numbers. This is because, with each new framework version, Microsoft has left all the existing assemblies intact, and added new functionality in new assemblies. Hence, in .NET Fx 3.5, a handful of new assemblies have appeared which are at version Open a new project in Visual Studio and then add a reference to System.Xml.Linq using the .NET tab. Look carefully and you will see that this is a version assembly. It was introduced in .NET Fx 3.5. Now add a reference to System.Xml. This is a version assembly. It hasn't changed since .NET 2.0 was released. Note how Microsoft doesn't set the build or release numbers for the 4-part version specifiers of Fx assemblies, and uses a three-part version specifier when referring to the runtime environment.

Having added your reference to System.Xml.Linq, you are now in a position to exploit new .NET Fx 3.5 functionality in your project. Unfortunately, you code editor doesn't support the new 'syntactic sugar' for Linq that was added in Visual Studio 2008. However, you can happily use all the classes and other types in System.Xml.Linq in the 'traditional' manner.

# re: Using .NET 3.5 and Visual Studio 2005 5/9/2008 4:38 AM StarTraX
Thanks for the quick exhaustive response. I will take your advice about not believing the About dialog!
As I indicated in my initial post, my initial problem is that I can't publish to the web, and the upgrade to 3.5 hasn't fixed it.
Have you any advice - I have a VP application that I published using the VS2005 publishing wizard. It's at but just doesn't work. Both the launch link and the install button result in the presentation of an XML page from The application just does not install on the client.

# re: Using .NET 3.5 and Visual Studio 2005 5/26/2008 7:07 AM Ajikumar

I'm using .Net Framework 3.5 now, but some fixes need done so i want to work on my previus version ie .Net Framewrok 3.0. But the new 3.5 its asking conversion to new framework. How to get ride of this conversion.


# re: Using .NET 3.5 and Visual Studio 2005 7/9/2008 9:19 PM Peter
Great article - it all makes perfect sense, especially the bits about the confusion over 2005 and .NET 3.5. One question that I haven't seen answered or addressed anywhere is - Can VS2005, with 3.5 installed, convert a 1.1 project to 3.5 using the wizard?

# re: Using .NET 3.5 and Visual Studio 2005 7/11/2008 8:34 PM Geoff
Charles, thanks for the excellent info. Do you know if the VS2005 deployment project will download and install Framework 3.5 as it does for 2.0? And if I don't reference any of the new (3.0+) assemblies from my project then I guess it will run on a machine which has only 2.0 installed? Thanks again.

# Can i convert directly from .net 1.1 to .net 3.5 7/23/2008 7:49 AM subbarao

How to convert the application from .net 1.1 to .net 3.5.

Can i directly convert my application from .net 1.1 to .net 3.5
first convet to .net 2.0 and then .net 3.5.

Please help me related to this.


# re: Using .NET 3.5 and Visual Studio 2005 8/17/2008 1:19 PM Binju Paul
i am using vs2005 i have installed .net3.5 framework. can i get the facility of ajax for the application on .net 2.0

# re: Using .NET 3.5 and Visual Studio 2005 9/5/2008 11:27 PM Left out fact
Hello Charles,
You are correct to say you can use .Net framework 3.5 using VS 2005 but if someone is using AjaxControlToolKit then they cannot use .Net framework 3.5. The recently released Ajax control kit for .Net framework 3.5 supports only VS 2008.

I hope this make sense to everyone before using .Net framework 3.5 in VS 2005 platform.


# re: Using .NET 3.5 and Visual Studio 2005 9/6/2008 12:42 AM Charles Young
Thanks for the information, Selvam. The only thing that can be claimed with certainty is that because .NET 3.5 code is compiled for the .NET 2.0 CLR, you can always exploit .NET 3.5 classes and other types directly in code you write in VS 2005. However, tooling generally has dependencies on specific versions of the IDE, and stuff designed for VS 2008 is unlikely to work on VS 2005.

# re: Using .NET 3.5 and Visual Studio 2005 9/6/2008 12:29 PM me myself and I
Hi Charles
Are you stupid or just plain dumb.
You keep missing the basic damn question. VS 2005 works with dot net 3.5 Blah blah blah . Well good for you hooray.

So it works for you - we are all happy about that. Now just spell it out.
Install the 3.5 runtime. Then create say a class library and then reference the damn 3.5 dlls from WHERE ?
Read the question that everyone is asking you. Reference the 3.5 DLLS from WHERE. So read. We dont give a damn about how it works for you or the technical reasons why it works.
Spell it out. reference the damn 3.5 dlls from where ???
The GAC ?
some folder in WINDOWS\Microsoft.NET\Framework
from WHere dummasss.

# re: Using .NET 3.5 and Visual Studio 2005 9/6/2008 3:09 PM Charles Young
Hi 'me myself and I"

Can I please ask you to moderate your language and attitude. It is quite unnecessary to post comments like that, and frankly rather gutless to do so anonymously.

When you install .NET 3.5, the assemblies are GACed as part of the installation process. In Visual Studio 2005, just reference these assemblies in the normal way (Project References). They should show up in the .NET tab of the Add Reference box.

As I explained in the original post, most assemblies have not changed, and still appear under earlier version numbers ( and New assemblies introduced in .NET 3.5 have a version number of

# re: Using .NET 3.5 and Visual Studio 2005 9/10/2008 4:36 PM confused
can you tell me whether I can do this :

Download framwork 3.5 to work with visual studio 2005 and do the following in this link:


# re: Using .NET 3.5 and Visual Studio 2005 9/10/2008 4:44 PM Confused
hi there

can i use framework 3.5 with visual studio 2005 and follow this link ?

thanks for you help

# re: Using .NET 3.5 and Visual Studio 2005 9/18/2008 10:25 PM Joey Alexander
Hi, I have a question. At work we currently use Visual Studio 2005 and .net 2.0.

We recently all got copies of vs 2008 and I am excited to upgrade but had a question before I do.

If I install vs 2008 and .net 3.5 will my projects I work on in VS 2005 now require .net 3.5?

# re: Using .NET 3.5 and Visual Studio 2005 9/29/2008 12:30 AM Bruce Davis
Hi Charles,

Thanks for all the valuable comments about incorporating .net 3.5 into a VS2005 environment. Your patience and dedication to this blog is admirable!

# re: Using .NET 3.5 and Visual Studio 2005 10/8/2008 2:26 PM Hugo
Hi Charles,

I appreciate everything that you wrote about this topic. But, I still have a question.

How can I use the ADO Entity Framework in VS2005? I know it's templates dosn't appear in VS2005.

Every place that I read about this, it isn't clear!


Ps.: Sorry my english....I'm brazilian.

# re: Using .NET 3.5 and Visual Studio 2005 10/10/2008 1:51 AM Mark
Hi, I have VS 2005 and installed .net 3.5. On the website it says that 3.5 includes ajax but I can not find the templates or any toolbox items (ScriptManager, UpdatePanel etc.). How can I get those to show up in VS 2005? Some other download?

At it says:

AJAX functionality is integrated in ASP.NET 3.5 and does not require any additional downloads.

but maybe that does not include toolbox items in VS 2005. Note that I don't need the toolkit for now, just the VS 2005 toolbox items.

Thanks, Mark

# re: Using .NET 3.5 and Visual Studio 2005 10/16/2008 1:14 AM Amendra

I am trying to use the AjaxControlToolKit (the new version, I cant find the old one on codeplex) with .NET 3.5 and VS2005.

BTW - I have reference System.Web.Extentsion Otherwise I get a compiler error if I use version 1 of the extenstions.

But even though I have reference System.Web.extension the compiler at runtime seems to be using Version 1.0xxxxx

Any help is appreciated.

Runtime error.

Compiler Error Message: CS1705: Assembly 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

DEtails from compiler
Assembly 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)

# re: Using .NET 3.5 and Visual Studio 2005 10/16/2008 9:37 PM oregonduckman
Hi Charles,

I installed 3.5 and 3.5 sp1 on my xp system with VS 2005. I added the 3.5 references to my project with the intent of using the RepeatButton object but cannot find a reference to System.Windows.Controls.Primitives.

Also, my toolbox is now empty and resetting it will not re-populate it,, any suggestions?


# re: Using .NET 3.5 and Visual Studio 2005 10/23/2008 6:34 AM saranya
i want back up for visual studio .net 2005

# re: Using .NET 3.5 and Visual Studio 2005 10/23/2008 6:52 PM Fernando
Hi, this my dev. environment:
Windows XP Pro, .NET Framework 2.0 and VS 2005 SP1 everything was working good, until I install .NET Framework 3.5. after that when I try run VS 2005 appears a classic error message to send Microsoft and I click on sent or don't sent but I can not continue using VS2005.
Any idea, I really appreciate it.

# re: Using .NET 3.5 and Visual Studio 2005 11/10/2008 11:12 AM shakti
Can we use WPF feature with VS 2005.
I installed .net framework 3.5 on VS 2005, but still i didnt get the WPF option.

# re: Using .NET 3.5 and Visual Studio 2005 11/18/2008 9:18 PM a the mole
as I read the countless comments, i became more and more irritated....perhaps if the questioners would take the time to educate themselves on the nature of IDE's and get a dang .net book and read it, instead of asking random questions about how to get this to work or help me fix it because I'm too lazy to figure it out on my own - you might not have so many lame people visiting this site if you were a little more blunt with them.

all of the frameworks ship with the accompanying compilers for them. you can write all the linq crap in notepad and use the command line, but that might be too much to ask for the lamers, in which case they would need to (over)pay micro$oft for a new IDE to do all the hard work for them, or try out for a different line of work.

# re: Using .NET 3.5 and Visual Studio 2005 11/19/2008 12:47 PM Charles Young
Thanks Mole. This article has certainly been a bit of an education for me on how much confusion there is out there on the differences between framework libraries, compilers and tooling. I suspect that this is the inevitable price that must be paid for having rich IDEs that do so much of the grunt work for us. I can't be too critical. For years, back in the early '90s, I was an Access Basic/VB developer, and didn't have any clear understanding, myself, of these sort of issues. I had no formal Computer Science background, and had to teach myself my trade from scratch. You are right, though. Read books. Ask questions. Struggle till you understand.

# re: Using .NET 3.5 and Visual Studio 2005 11/20/2008 2:11 PM Tina
A huge thank you to you for your article and the patience you have in answering questions. Your background from the early 90's is my background from 4 years ago. I am struggling till I understand and I appreciate the information you have provided that is getting me to the point of understanding.

# re: Using .NET 3.5 and Visual Studio 2005 11/25/2008 9:46 PM David
Hi Charles,

I am still getting errors when trying to compile my WF project in VS 2005. Here's whats going on. I created an ADO.NET Data Services project in VS Studio Express 2008. I already have VS2005 Pro on my machine, but can't get VS2008 except for aforementioned Express version. So therefore I created WF application in VS2005, and now I want to reference the Data Services with in my WF app by creating a proxy. But I use "Add Service Reference" in VS2005 and it fails. If I use datasvcutil.exe it creates a c# 3.0 proxy class, which then won't compile inside of VS 2005. I can't use "Add Web Reference" since ADO.NET Data Services are RESTful, and do not have WSDL. So I'm stuck!

Any help you can give would be MUCH appreciated.

:) David

# re: Using .NET 3.5 and Visual Studio 2005 11/26/2008 3:53 PM David
Don't worry about my earlier question. I used datasvcutil.exe, and then I created a C# class library in Visual C# 2008 Express, and added those classes in. I then compiled into dlls, and then copied dlls to WF project in VS 2005, and added the dlls in as "Add Reference". The WF project now compiles fine in VS 2005. Thanks alot.

:) David

# re: Using .NET 3.5 and Visual Studio 2005 12/30/2008 7:30 PM ahana
Hi Charles...
I am really new to .Net my questions may be silly 2 u.but plz try 2 answer,it will be really appreciated.Can We use LINQ with Visual studio 2005(if we have .net fw 3.5)??.Can Linq be used with VS 2005 and 3.0 .

# re: Using .NET 3.5 and Visual Studio 2005 1/5/2009 8:33 PM Serdar Osman Onur
that question has already been answered...

# re: Using .NET 3.5 and Visual Studio 2005 2/10/2009 5:56 PM Wim
Amendra, I guess you already fixed it, but it might be useful to someone else, it sure would have helped me if i found the solution here.

To fix it i changed all the Version=1.0.61025.0 to Version= in my web.config

# re: Using .NET 3.5 and Visual Studio 2005 3/14/2009 4:37 AM Edward
Realise this is quote is a few months old but had to respond.
Quote from "a the mole"
"all of the frameworks ship with the accompanying compilers for them. you can write all the linq crap in notepad and use the command line, but that might be too much to ask for the lamers, in which case they would need to (over)pay micro$oft for a new IDE to do all the hard work for them, or try out for a different line of work."

From the above I can only assume you're still in school.

So somebody who is under pressure to find a solution to a problem is a lamer?
When you get a real job, you'll find that most companies don't like paying for tools but still expect to use the latest and greatest without allocating time to any type of research.

Write it all in notepad?
Good luck with that on your CV. "I write all of my code in notepad because Visual Studio is for lamers" won't get you any interviews.

Notepad is fine for samples and examples. We have a small app of only 40K lines. Attempting to navigate through that, from "finding all the calling methods to follow the flow of code" to "finding references for refactoring" would be slow & painful. We don't get paid for slow.

# re: Using .NET 3.5 and Visual Studio 2005 3/25/2009 1:11 PM RonnyD
Windows XP, VS 2005, exts., .NET Framework 3.5
Why can't I see any references to .NET Framework in my VS 2005? I can see them in VS 2008, what gives?

# re: Using .NET 3.5 and Visual Studio 2005 3/27/2009 9:59 PM Charles Young
They should all be listed in the .NET tab of the Add Reference dialog. If not, then that suggests something may be wrong with your installation.

# re: Using .NET 3.5 and Visual Studio 2005 4/7/2009 12:01 PM munaff
I am very new to programming iam using vs2005 with .net frame work 2.0, and recently i install .net framework 3.5,
is it possible to run vs2005 with .netframework 3.5

# re: Using .NET 3.5 and Visual Studio 2005 4/7/2009 12:02 PM munaff
is it possible to run vs2005 with .netframework 3.5

# re: Using .NET 3.5 and Visual Studio 2005 4/20/2009 9:42 PM Bob
Hi Charles, and thank you for this great post that clarified many things to me.

I need to target Pocket PC 2002 (CE 3.0), and building with VS 2003 seems to be the only way to go.

Do you think is it possible to leverage .Net 3.5 (with 'traditional sintax' LINQ) within VS 2003? If yes, some suggestions?

# re: Using .NET 3.5 and Visual Studio 2005 4/30/2009 5:15 PM Suren
My Company has licensed VS2005 Proffesional Edn with .net 2.0 and would like to upgrade to .net 3.5. What will be cost incurred in upgrading from from .net 2.0 to 3.5 AND the cost for upgrading from VS2005 to 2008. [Please, tell me prices for each upgrade seperately].
Thanks in advance

# re: Using .NET 3.5 and Visual Studio 2005 4/30/2009 5:15 PM Suren
Hi Charles,
My Company has licensed VS2005 Proffesional Edn with .net 2.0 and would like to upgrade to .net 3.5. What will be cost incurred in upgrading from from .net 2.0 to 3.5 AND the cost for upgrading from VS2005 to 2008. [Please, tell me prices for each upgrade seperately].
Thanks in advance

# re: Using .NET 3.5 and Visual Studio 2005 5/31/2009 6:25 AM Vishwanath
Dear Charles,
Thanks a lot for your wonderful article..... This article has made me realize the extent to which Fx3.5 is compatible with its previously released counterparts.
I still have a small query but its a critical one as it can impact the applications in Production.
--> Suppose if I add the dlls and use their classes in my project, will they work if i build the project in 2.0Fx and deploy the same in a webserver having .Net Fx2.0....

Please guide me on the same.

Thanks and Regards,

# re: Using .NET 3.5 and Visual Studio 2005 5/31/2009 2:16 PM Charles Young
Hi Vishwanath

If your target machine only has version 2.0 of the framework installed, then the specific .NET 3.5 assemblies won't be available on that machine. So, I'm afraid any call into a .NET 3.5 assembly will fail.

I pointed out in a previous comment that since version 2.0, Microsoft has been careful to retain all the 2.0 assemblies and have added all new functionality to new assemblies with later version numbers. So, I suppose you could identify the later assemblies your application has a dependancy on, and manually install those into the GAC on your web server, just as you would do with any other assembly. However, while I totally understand why there may be reluctance to upgrade the web server, I wouldn't recommend this approach. While I'm fairly confident it would work, I would strongly suggest that the lower risk approach would be to upgrade the web server to .NET 3.5. Micrososoft has already done a lot of testing for you to ensure that this this won't compromise existing apps.

# re: Using .NET 3.5 and Visual Studio 2005 6/2/2009 12:27 AM Mike Lebo
I am building an ASP website with Visual Studio 2005. Before I installed the .net 3.5 framework I was using 2.0. All my webpages center in the middle of the page. Since I installed 3.5 I can't get my web pages to center. Allot of my formatting seems to be skewed and can't get it back. Any idea why?

# re: Using .NET 3.5 and Visual Studio 2005 8/2/2009 3:09 PM Jahin

I am sorry to see that some one is using such bad language ( some time ago ) , when you are putting such a big effort to try to keep all of us informed, Thank you for your help and sorry for the abuse that some people do.

# re: Using .NET 3.5 and Visual Studio 2005 8/20/2009 1:05 PM Saurabh
Recently, I have installed VISTA on my system. Prior to that I was working on XP system and VS 2005. The new Vista has come with .Net 3.5 preinstalled. I am installing the VS5 on the system But I am facing the following error "Can Not find one or more components. Please reinstall the application". The pop up window has the title "Document Explorer". Is this related to .net 3.5 version? What should I do? Please help.

# re: Using .NET 3.5 and Visual Studio 2005 8/28/2009 2:24 AM Dharam
Hi Charles,

Thanks for this amazing blog.
Need your assistance on one thing.
I want to use Microsoft Chart Control, introduced in ASP.Net for framework 3.5, in Visual Studio 2005.
Will installing latest service pack for Visual Studio 2005 and framework 3.5 will solve this problem? Else kindly suggest an alternative.


# re: Using .NET 3.5 and Visual Studio 2005 10/15/2009 11:01 AM Mark
Hi Charles
I'm Using VS2005 for Intranet apps. If I install Net 3.5 will I be able to take advantage of the new charting and report controls I've seen requiring Net 3.5.
Also I assume that Net 3.5 must be installed on my remote Pc and the server that hosts the apps. (Is this correct?)

# re: Using .NET 3.5 and Visual Studio 2005 10/25/2009 3:10 PM Charles Young
Sorry Mark. Notification of your comment got lost in my junk mail.

Yes I would expect that you could certainly take advantage of .NET 3.5 controls in Visual Studio 2005. I don't know enough about the architecture of these components to answer your remote PC/server question, but if they depend on the .NET framework to be running local to the browser, then yes, that sounds right.

# re: Using .NET 3.5 and Visual Studio 2005 11/11/2009 1:07 PM Devai Richard
Hi Charles!

We are developing a Visual Studio 2005&8 Add-in. Our company had had a change, and we had lost the Studio licenses and we had to buy new ones. By the way we wrote the codes with Studio 2005 (C#) and compiled it under .Net 2.0 it works fine eighter platforms of course. We are thinking about buy Visual Studio 2008, compile the code in 3.5 and use it features like lambdas, auto-props etc. Could it work with 2005 and 2.0 until we are using interfaces what each IDE using or only if the framework would be upgreaded to 3.5 with 2005 or neighter and we should buy 2005 licenses again or here is an other way like use 2008 whit 2.0 mode...


# re: Using .NET 3.5 and Visual Studio 2005 11/13/2009 4:58 PM se
How to set up visual studio 2005 with .net 3.5 ?

and how to target .net 3.5 in visual studio 2005?

# re: Using .NET 3.5 and Visual Studio 2005 11/23/2009 3:18 AM Niranjan
Hi charles,
i am a trainne of .net so i reguarly use it.We can addle the vs2005 and .NET 3.5 frameworg through ad some .dll files in vs2005.But i dont know which they are .Please justify it


# AJAX clarification 12/10/2009 3:09 PM ergolargo
Hi Charles

I wondered if you or anybody else could just help clarify for me the current situation about using AJAX controls with .NET Framework 3.5?

I currently have VS2005 with .NET Framework 3.0 installed, and I have made liberal use of various AJAX controls in ASP.NET pages, so the site depends on and requires them.

I'm a bit confused about the compatibility of AJAX controls with Framework 3.5 in VS2005. If I upgrade Framework 3.0 to 3.5 , should I still expect all the AJAX controls to be compiled correctly for my ASP.NET pages? I get the impression from some of the comments above that only VS2008 can handle this, or have I just got the wrong end of the stick?

Also, when installing Framework 3.5, presumably this does not replace 3.0? If the AJAX controls don't work using Framework 3.5, is it right that I can still point VS2005 to compile with Framework 3.0, or is it overwritten by the 3.5 install? Can I uninstall 3.5 to get back the original 3.0 functionality, if the AJAX controls no longer work?

Thanks ever so much for your guidance on this, I've been putting off the upgrade for months because of this.


# re: Using .NET 3.5 and Visual Studio 2005 1/28/2010 4:12 AM shruti
hii sir..!! can u plz tell me the method to add assemblies to the add reference dialogue box im working in 3.5 version of .net i need my oracleconnection,oracle client assemblies for making connection but my assemblies of oracle connection and client are in 2.0 can u plz help out??

# re: Using .NET 3.5 and Visual Studio 2005 2/13/2010 3:30 PM Fred
Hi Charles,

thanks a lot for your suport for all of us. I developped an Aplicatican using VB2005 and .Net Framework 2.0.

Could you please tell me if I install an Aplication that only use .Net Framework 2.0 on a machine with 2.0 and 3.5 installed is less performance then if I install the same appliction on a machine with only 2.0 ?

In other words, .Net Framework 2.0 has better performance than 3.5 when you run an Aplication which only use 2.0.

Sorry but my English is not "perfect"...:-)

Thanks in advance.


# re: Using .NET 3.5 and Visual Studio 2005 6/6/2010 11:02 PM jersey
I've been putting off the upgrade for months because of this.

# re: Using .NET 3.5 and Visual Studio 2005 6/15/2010 3:12 PM Paul Kiernan

I've tried to write linq to XML code in Visual Studio 2005 in a class library project. I have added the references to System.Core and Systen.xml.linq, however the IDE will not compile the solution because it doesn't recognise the linq code.

I understand this occurs because VS 2005 is compiling my code against 2.0 and not 3.5. Can you tell me how to tell VS 2005 to compile against framework 3.5 please?



P.S I know you can set the target framework in 2008+ but we aren not allowed to upgrade yet :(

# re: Using .NET 3.5 and Visual Studio 2005 10/21/2010 6:55 AM cindy
Using .Net is quite interesting for me.I am very new to programming iam using vs2005 with .net frame work 2.0, and recently i install .net framework 3.5,
is it possible to run vs2005 with .netframework 3.5
html validation

# re: Using .NET 3.5 and Visual Studio 2005 10/21/2010 8:06 AM claresmith
I want to use Microsoft Chart Control, introduced in ASP.Net for framework 3.5, in Visual Studio 2005.
Will installing latest service pack for Visual Studio 2005 and framework 3.5 will solve this problem? Else kindly suggest an alternative.Some times positive feedback very important for improvement.

# re: Using .NET 3.5 and Visual Studio 2005 7/5/2011 4:06 PM James C.
I realize that this blog has been inactive for quite some time, but I am reading a lot of frustration mixed in with the great help that this blog provides and I'd like to address it for those that might come along in the future.

I think a few visitors are expecting a quick "flip this switch to make visual studio use the 3.5 framework" answer, evidenced by this quote from above:
How to set up visual studio 2005 with .net 3.5 ?
and how to target .net 3.5 in visual studio 2005?

.. not to mention from very frustrated entry about halfway up...

I'm no expert and I'm sure others can comment/refine my answer as needed, but the short answer is this:

There is no switch to flip your Visual Studio 2005 to use the 3.x framework instead of 2.0.

You have to right click on your web (or other) project and get into your "project references." That's the long list of libraries that might including things like:

If you want to use the 3.5 framework you either have to START with a project that has all of these already pointed to the 3.5 libraries (using a template), or you have to take the time to manually add each and every individual reference that you need.

Remember, each of those entries in that long list is a library and the .Net Framework itself is just a collection of LOTS of these things. Now, as stated above, some of the libraries didn't change when the .Net Framework 3.5 was released, so you might be confused by the version number and think, "hey, my System.Web library isn't using the 3.5 Framework." Don't worry about that, you didn't miss anything, you are just seeing where the line has been blurred a bit because the library didn't change.

If you click Add Reference and go to the .Net tab, you will also see lots of libraries that have the version. This is the new stuff that you didn't have before you installed the 3.5 framework. If one of these libraries has a feature you need, go ahead and add it to your project, but again, don't get too hung up on those numbers that still seem to be hanging around in your project references.

So, I hope this was a help. I know the answer that was "desired" was flip this switch and POOF you are running the 3.5 framework in VS 2005, but I can't really offer that for you.

Fortunately, later versions of Visual Studio get much better at providing the user with a clear picture of which framework to "target," but I wont get into that because it's a much longer post.

# re: Using .NET 3.5 and Visual Studio 2005 7/5/2011 10:40 PM Charles Young
Thanks James.

Yes, the blog is *fairly* inactive at the moment. I do post now and again. Maybe as Integration Services start to some along in the Azure space, I'll find more reason to blog.

This is the single most visited post on my site! Without meaning to, I clearly hit a hot topic. So, any clarification and explanation is very welcome.

# Attempt to load Oracle client libraries threw BadImageFormatException. 7/10/2011 5:43 AM Tahir
I have VS 2005 on Win 7 Professional 64bit system and database is Oracle 11g r2 64bit installed on the same machine.

In Data Source Configuration Wizard --> New Connection
Data Source: Oracle Database (Oracle Client)
When I click Test Connection after entering Service name, username, and password I get the following error:

Attempt to load Oracle client libraries threw BadImageFormatException.
This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

-- I have no oracle client installed because there is no need in this case, I have the same setup on my laptop Win 7 32bit Oracle 11g r2 32bit and everything is working fine.

Please let let me know if you guys have solution for this issue.

# re: Using .NET 3.5 and Visual Studio 2005 12/28/2011 5:38 PM Richard Berthold
Thank you for all of the efforts which have gone into this blog.

I have been working on an error in a very large project involving Visual Studio 2005, Framework 2.0 and Crystal Reports. I isolated it into a very simple application which would crash visual studio which run with a particular report and set of data. After pulling my hair out looking for something to do , I tried downloading a trial version of Visual Studio 2010 and Crystal Reports for Visual Studio 2010. And as you might have guessed it works there.

As I said, what I really need to get working is the large application which is actually only a part of a very large system with which it shares many libraries. So I have been trying to come up with reasonable alternatives that might work.

I first tried to use the new Crystal dlls but that that failed also.

My next approach was to try the Framework 4.0 dlls in my VS 2005 application. Which led me to this blog.

I am willing to remove all of the references to the Framework 2.0 libraries and add them in from the Framework 4.0 libraries but it keeps saying that I still am referencing the 2.0 ones. Is there something I need to do to insure that I am referencing the proper dlls

#  Visual Studio 2005 2/8/2012 8:54 AM nick
i'm getting a error in c# saying " must add a reference to assembly 'System.core,version=,culture=neutral,publickey Token=b77a5c561934e089' "

# re: Using .NET 3.5 and Visual Studio 2005 8/31/2012 8:16 AM poornima
first install ASP.NET AJAX Extensions 1.0 and then the toolkit by opening an new ajax enable website in VB 2005 :)

ps. if its 2005 then u needs to use , is for 2008

Post A Comment