locked
Updated to .net 3.5 but everything still references 2.0 RRS feed

  • Question

  • User-1940582592 posted

    I installed .net 3.5 on my server.

    In Visual Studio I right clicked on the project and went to Properties.  Under Application->Target Framework I selected ".NET Framework 3.5".

    When I right click some of the references under my project such as: System, System.Core, System.Data, etc. they are using the .dll located under:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

    Why are these references still pointing to the old version?  Do I have to manually re-direct every reference?  If so, then what is the point of selecting ".Net Framework 3.5" under the project properties as mentioned above?

    Thanks...

    Saturday, November 14, 2009 2:39 PM

Answers

  • User176332441 posted

    target to 3.5 and rebuild, that is it you are done

    3.5 is just bits and piecesssss added to 2.0 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, November 14, 2009 10:52 PM

All replies

  • User-723833757 posted

    Check your web.config file

    in my controls section

    <controls>
    				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			</controls>


    also in the assemblies section

    <assemblies>
    				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.ComponentModel.DataAnnotations, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    			</assemblies>

    Now, I am not completely positive about this, but I am 99% sure that control like label controls, image controls etc are still version 2.0 controls, and newer controls like extenders, ajax are 3.5 etc

    Saturday, November 14, 2009 8:19 PM
  • User176332441 posted

    target to 3.5 and rebuild, that is it you are done

    3.5 is just bits and piecesssss added to 2.0 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, November 14, 2009 10:52 PM
  • User-1940582592 posted

    ok....that makes sense....I notice that it is a mix...some references are 2.0 while others are 3.5

    Sunday, November 15, 2009 2:40 PM