Downgrading target framework - 3.5 to 2.0

Discussion in 'ASP .Net' started by John, Jan 15, 2008.

  1. John

    John Guest

    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
     
    John, Jan 15, 2008
    #1
    1. Advertising

  2. 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
    >
    >
    >
     
    Peter Bromberg [C# MVP], Jan 15, 2008
    #2
    1. Advertising

  3. John

    John Guest

    Great. Thanks very much Peter.

    Best regards

    John

    "Peter Bromberg [C# MVP]" <> wrote in message
    news:...
    > 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
    >>
    >>
    >>
     
    John, Jan 15, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Flynn
    Replies:
    3
    Views:
    493
    Kevin Spencer
    Jul 3, 2003
  2. Mike
    Replies:
    5
    Views:
    9,783
    Juan T. Llibre
    Mar 12, 2005
  3. mohit
    Replies:
    0
    Views:
    580
    mohit
    Jan 23, 2008
  4. Cirene
    Replies:
    3
    Views:
    317
    Cirene
    Jun 2, 2008
  5. Mircea Pleteriu

    Target a different .NET Framework version

    Mircea Pleteriu, May 3, 2005, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    164
    Steven Cheng[MSFT]
    May 4, 2005
Loading...

Share This Page