473,804 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downgrading target framework - 3.5 to 2.0

Hi there,

I've started off a new web site project in VS 2008 and inadvertently left
the target framework as 3.5, when I really meant to base it 2.0.

I've looked at the project properties page and changed the Build / Target
Framework to 2.0 but I notice that References (also in web.config) still
have 3.5 references such as LINQ.

Can you change a project target framework half way through or can it only be
set at the beginning (note - none of the code behind uses 3.5 namespaces)?

Thanks in advance.

John
Jan 15 '08 #1
2 7620
Just remove the references and using statements. For references, expand the
References node in Solution Explorer, highlight the offender, hit the DEL key.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"John" wrote:
Hi there,

I've started off a new web site project in VS 2008 and inadvertently left
the target framework as 3.5, when I really meant to base it 2.0.

I've looked at the project properties page and changed the Build / Target
Framework to 2.0 but I notice that References (also in web.config) still
have 3.5 references such as LINQ.

Can you change a project target framework half way through or can it only be
set at the beginning (note - none of the code behind uses 3.5 namespaces)?

Thanks in advance.

John
Jan 15 '08 #2
Great. Thanks very much Peter.

Best regards

John

"Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in message
news:51******** *************** ***********@mic rosoft.com...
Just remove the references and using statements. For references, expand
the
References node in Solution Explorer, highlight the offender, hit the DEL
key.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"John" wrote:
>Hi there,

I've started off a new web site project in VS 2008 and inadvertently left
the target framework as 3.5, when I really meant to base it 2.0.

I've looked at the project properties page and changed the Build / Target
Framework to 2.0 but I notice that References (also in web.config) still
have 3.5 references such as LINQ.

Can you change a project target framework half way through or can it only
be
set at the beginning (note - none of the code behind uses 3.5
namespaces)?

Thanks in advance.

John

Jan 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1633
by: Don Freeman | last post by:
The situation I find myself in right now is that my home (read: development) machine has PHP5 installed but my target machine (read: production) only has version 4 installed. This has caused a couple of problems with testing passing my code but the production machine failing. (one example is the str_ireplace() function). I have been doing testing for the existence of a function but I first have to know if it is exclusive to version 5...
1
2211
by: Kenneth Osenbroch | last post by:
Hi there. I have updated (patched) a 7.3.4.0.1 installation to 7.3.4.5.0, and would like to know if I can use the databases (which has been running on the updated installation for a while) if I have to downgrade to 7.3.4.0.1 again. Any comments would be appreciated. Thanks, Kenneth Osenbroch
0
1232
by: skidvd | last post by:
Hello: I'm wondering if there are procedures anywhere for DOWNgrading a MySQL database to a more stable version. I'v recently upgraded to 4.1.3-beta and was hoping to roll back to 4.0.20 production. I'm seeing to many spurious problems at the beta level (which are to be expected given its status). Finally, could anyonw hazzard a giess as to when 4.1 may become the stable production release>
6
1865
by: Plumer | last post by:
Good morning everyone, I am having difficulty distributing a Release version of an application. System info C# DOTNET, MDE 2002, Version 7.0.9466 .Net Framework, version 1.0.3705 My Desktop Operating system (as reported by Control Panel.System) is: Windows XP, Version 2002
22
2180
by: larry | last post by:
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading to me: "The search for an easy, productive, and very powerful programming language led to the birth of Visual C#. Visual C# incorporates the best features of Visual C++ and Visual Basic. Visual C# enables you to
6
2307
by: Matt Adams | last post by:
Hello: I have an awkward situation where I must downgrade from 7.4 to 7.1. I have two databases already in 7.4. I'm largely ignorant concerning postgresql: am I going to have any severe problems downgrading? Thanks Matt
2
2899
by: Kenneth Jonsson | last post by:
I have an COM server in an assembly. When it is deployed on a target computer it needs to be registred with RegAsm. I created a custom action in the deploy project, starting RegAsm with the assembly DLL as command argument. It all works as expected. To make RegAsm available I installed it from the framework bin directory to the componentes application folder on the target machine. An custom action can only refer executables in application...
9
3187
by: anonymous | last post by:
Hello all, I have a C# application written using Visual C# 2005 Express. I believe it uses some of the .Net 2 controls and so on. I want to run this application on Linux using mono 1.2 (supports .Net 1.1). What is the best approach to downgrade this application to use .Net 1.1 stuff? Thanks /kmk
5
1822
by: zacks | last post by:
I am working on an application in VS2008. I have set the target framework to 2.0. I distributed the app to a coworker in MSI format. When he tried to install it, he was told that he needed to install the 3.5 framework. I am wondering, when I created the project, I didn't even notice the dropdown in the create project dialog to select the target framework, so it was initially created with 3.5 as the target framework. But I went into the...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.