update<Build>: build with .NET 6.0 and .Net Framework 4.8

This commit is contained in:
leo 2021-11-15 19:50:16 +08:00
parent 18525425bb
commit d40edebc58
3 changed files with 3 additions and 17 deletions

View file

@ -31,8 +31,8 @@ Pre-build Binaries[Releases](https://github.com/sourcegit-scm/sourcegit/relea
| File | .NET runtime | Description |
| ------------------------ | ------------------ | --------------------------------- |
| SourceGit.net5.0.x86.exe | .NET 5 x86 | Need to be installed by user. |
| SourceGit.net5.0.x64.exe | .NET 5 x64 | Need to be installed by user. |
| SourceGit.net6.0.x86.exe | .NET 6 x86 | Need to be installed by user. |
| SourceGit.net6.0.x64.exe | .NET 6 x64 | Need to be installed by user. |
| SourceGit.net4.8.exe | .NET Framework 4.8 | Windows 10/11 already installed. |
> NOTE: You need install Git first.

View file

@ -11,20 +11,6 @@ cd ..\publish
ren SourceGit.exe SourceGit.net4.8.exe
rmdir /s /q net48
cd ..\src
rmdir /s /q bin
rmdir /s /q obj
dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net5.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
cd ..\publish
ren SourceGit.exe SourceGit.net5.0.x86.exe
cd ..\src
rmdir /s /q bin
rmdir /s /q obj
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net5.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
cd ..\publish
ren SourceGit.exe SourceGit.net5.0.x64.exe
cd ..\src
rmdir /s /q bin
rmdir /s /q obj

View file

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-windows;net5.0-windows;net48</TargetFrameworks>
<TargetFrameworks>net6.0-windows;net48</TargetFrameworks>
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
<ApplicationIcon>App.ico</ApplicationIcon>