是用VS2010开发的,2010自带dotNet4.0,程序一直都基于此开发的,不过,没有用到4.0的什么新功能,只有一个wcf,3.5也有了,所以,想转为可以在3.5下运行,可以吗?

解决方案 »

  1.   

    sln文件用记事本打开。
    Microsoft Visual Studio Solution File, Format Version 11.00
    改为
    Microsoft Visual Studio Solution File, Format Version 10.00# Visual Studio 2010
    改为
    # Visual Studio 2008打开项目的csproj文件
    <TargetFrameworkVersion>v4.0
    改为
    <TargetFrameworkVersion>v3.5
      

  2.   

    就是说可以无缝转接到3.5,直接更改Target Framework就可以了是吗?正在下载3.5…………
      

  3.   

    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3267: The primary reference "Microsoft.CSharp", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Client". To resolve this problem, either remove the reference "Microsoft.CSharp" or retarget your application to a framework version which contains "Microsoft.CSharp".
    Properties\Resources.resx(123,5): error RG0000: 未能加载文件或程序集“System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。 行 123,位置 5。转为3.5后编译出现这么一个错误!!
      

  4.   

    http://www.codeproject.com/KB/shell/VSSolutionVersionChanger.aspx
      

  5.   

    在Resources.resx里的这段代码是什么意思:
      
    <resheader name="reader">
        <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
      </resheader>
      <resheader name="writer">
        <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
      </resheader>
      <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      <data name="logo1" type="System.Resources.ResXFileRef, System.Windows.Forms">
        <value>..\logo1.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
      </data>
      <data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
        <value>..\logo.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
      </data>
      <data name="tt" type="System.Resources.ResXFileRef, System.Windows.Forms">
        <value>..\tt.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
      </data>
    </root>
      

  6.   

    在哪里删除,每个文件开头的using ....吗?
      

  7.   

    具说,.NET Framework4.0比.NET Framework3.5小很多,直接装上.NET Framework4.0了
      

  8.   

    的确是这样,但是傻逼客户非要这样,我也没办法,还说windowsXP会自动更新.net 3.5,很是郁闷啊,