Downgrading target framework - 3.5 to 2.0

Downgrading target framework - 3.5 to 2.0

am 15.01.2008 13:05:25 von John

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

RE: Downgrading target framework - 3.5 to 2.0

am 15.01.2008 13:32:00 von pbromberg

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
>
>
>

Re: Downgrading target framework - 3.5 to 2.0

am 15.01.2008 13:44:57 von John

Great. Thanks very much Peter.

Best regards

John

"Peter Bromberg [C# MVP]" wrote in message
news:5178068C-EBCA-489B-80E8-BE70A646F7DE@microsoft.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
>>
>>
>>