码神工具从NET4.6退回都NET4.5框架,让其能够在win7sp1上直接运行大石头 authored at 2021-12-12 13:04:36
diff --git a/XCoder/App.config b/XCoder/App.config
index 42c09bc..4d80070 100644
--- a/XCoder/App.config
+++ b/XCoder/App.config
@@ -21,7 +21,7 @@
<add name="Access" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=~\App_Data\Test.mdb;Persist Security Info=False;OLE DB Services=-1" providerName="Access"/>
<add name="SqlCe" connectionString="Data Source=test.sdf;" providerName="SqlCe"/>
</connectionStrings>
- <System.Windows.Forms.ApplicationConfigurationSection>
+ <!--<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2"/>
- </System.Windows.Forms.ApplicationConfigurationSection>
+ </System.Windows.Forms.ApplicationConfigurationSection>-->
</configuration>
diff --git a/XCoder/Program.cs b/XCoder/Program.cs
index fdc34ad..974c97c 100644
--- a/XCoder/Program.cs
+++ b/XCoder/Program.cs
@@ -1,15 +1,10 @@
using System;
-using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
-using System.Reflection;
using System.Windows.Forms;
using NewLife;
using NewLife.Log;
-using NewLife.Net;
using NewLife.Threading;
-using NewLife.Xml;
-using XCode.DataAccessLayer;
using System.Threading.Tasks;
#if !NET4
using Stardust;
diff --git a/XCoder/XCoder.csproj b/XCoder/XCoder.csproj
index d20e853..a43b1bb 100644
--- a/XCoder/XCoder.csproj
+++ b/XCoder/XCoder.csproj
@@ -12,6 +12,7 @@
<AssemblyName>XCoder</AssemblyName>
<ApplicationIcon>leaf.ico</ApplicationIcon>
<LangVersion>latest</LangVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
@@ -23,7 +24,7 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<OutputPath>..\..\XCoder\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>