Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to convert my project (it uses .NET 4.0) to .NET 3.5. How can I do this in Visual Studio 2010 ?!
Posted
Updated 4-Dec-12 6:48am
v3
Comments
DamithSL 4-Dec-12 12:31pm    
http://msdn.microsoft.com/en-us/library/bb398202.aspx
Richard C Bishop 4-Dec-12 12:33pm    
I don't think you can really convert it as they are the same thing, one just has newer capabilities. You can either change the target framework or in IIS you can change the application pool to use one or the other.

Go into your project properties (right click your project, and click "Properties"), under the "Application" section, and change "Target framework" to ".NET Framework 3.5" or ".NET Framework 3.5 Client Profile", then fix any errors that appear (if any).
 
Share this answer
 
Comments
Thomas Daniels 4-Dec-12 12:40pm    
Good answer, +5!
for converting

you have to set
<targetframeworkversion>v3.5

on web.config

and try following also

XML
<configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
 
Share this answer
 
Comments
Surendra0x2 4-Dec-12 14:08pm    
Instead of this Do this-
http://alanfeekery.com/2011/03/28/changing-the-asp-net-target-framework-in-visual-web/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900