如何在我的项目中将.NET 4.0转换为3.5? [英] How can I convert .NET 4.0 to 3.5 in my project ?!

查看:118
本文介绍了如何在我的项目中将.NET 4.0转换为3.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的项目(它使用.NET 4.0)转换为.NET 3.5。如何在Visual Studio 2010中执行此操作?!

I want to convert my project (it uses .NET 4.0) to .NET 3.5. How can I do this in Visual Studio 2010 ?!

推荐答案

进入项目属性(右键单击项目,然后单击属性),在应用程序下部分,并将目标框架更改为.NET Framework 3.5或.NET Framework 3.5 Client Profile,然后修复出现的任何错误(如果有)。
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).


HTTP:// WWW。 bnettechnologies.com/BnetBlog/post/2010/11/01/Target-Framework-Net-Framework-40-to-Net-Framework-35.aspx [ ^ ]


转换



你必须设置

< targetframeworkversion> v3.5



在web.config上



并尝试关注lso



for converting

you have to set
<targetframeworkversion>v3.5

on web.config

and try following also

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


这篇关于如何在我的项目中将.NET 4.0转换为3.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆