mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
update<Build>: build with .NET 6.0 and .Net Framework 4.8
This commit is contained in:
@@ -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.
|
||||
|
||||
14
build.bat
14
build.bat
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user