mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
update<Build>: build with .NET 6.0 and .Net Framework 4.8
This commit is contained in:
parent
18525425bb
commit
d40edebc58
3 changed files with 3 additions and 17 deletions
|
@ -31,8 +31,8 @@ Pre-build Binaries:[Releases](https://github.com/sourcegit-scm/sourcegit/relea
|
||||||
|
|
||||||
| File | .NET runtime | Description |
|
| File | .NET runtime | Description |
|
||||||
| ------------------------ | ------------------ | --------------------------------- |
|
| ------------------------ | ------------------ | --------------------------------- |
|
||||||
| SourceGit.net5.0.x86.exe | .NET 5 x86 | Need to be installed by user. |
|
| SourceGit.net6.0.x86.exe | .NET 6 x86 | Need to be installed by user. |
|
||||||
| SourceGit.net5.0.x64.exe | .NET 5 x64 | 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. |
|
| SourceGit.net4.8.exe | .NET Framework 4.8 | Windows 10/11 already installed. |
|
||||||
|
|
||||||
> NOTE: You need install Git first.
|
> NOTE: You need install Git first.
|
||||||
|
|
14
build.bat
14
build.bat
|
@ -11,20 +11,6 @@ cd ..\publish
|
||||||
ren SourceGit.exe SourceGit.net4.8.exe
|
ren SourceGit.exe SourceGit.net4.8.exe
|
||||||
rmdir /s /q net48
|
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
|
cd ..\src
|
||||||
rmdir /s /q bin
|
rmdir /s /q bin
|
||||||
rmdir /s /q obj
|
rmdir /s /q obj
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0-windows;net5.0-windows;net48</TargetFrameworks>
|
<TargetFrameworks>net6.0-windows;net48</TargetFrameworks>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||||
|
|
Loading…
Reference in a new issue