添加.net4.0编译版本

This commit is contained in:
yi-ge 2019-08-25 23:57:04 +08:00
parent 5c2bc0824f
commit e8ef04d000
3 changed files with 8 additions and 1 deletions

View File

@ -17,3 +17,5 @@ curl -O https://y-bi.top/setup.sh && sudo chmod +x setup.sh && ./setup.sh
### Windows ### Windows
Download setup file: [https://y-bi.top/setup.exe](https://y-bi.top/setup.exe) Download setup file: [https://y-bi.top/setup.exe](https://y-bi.top/setup.exe)
注意:默认版本兼容.NET2.0+,如果您的操作系统较新(例如 Windows Server 2019默认没有安装.NET Framework 3.5),可以尝试安装此版本(基于.NET Framework 4构建)[https://y-bi.top/setup.net4.exe](https://y-bi.top/setup.net4.exe)

3
setup/app.config Normal file
View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

View File

@ -8,10 +8,11 @@
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<RootNamespace>setup</RootNamespace> <RootNamespace>setup</RootNamespace>
<AssemblyName>setup</AssemblyName> <AssemblyName>setup</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
@ -67,6 +68,7 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" />
<None Include="Properties\app.manifest" /> <None Include="Properties\app.manifest" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>