feature<Project>: supports build with .NET 6

This commit is contained in:
leo 2021-10-28 15:47:47 +08:00
parent 898599afc9
commit 3628729a93
5 changed files with 74 additions and 7 deletions

View file

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