mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
refactor<build>: no longer provides .NET48 and .NET6 x86 targets.
This commit is contained in:
parent
171f1d1d0c
commit
1a1d0d9004
2 changed files with 10 additions and 32 deletions
23
build.bat
23
build.bat
|
@ -3,26 +3,7 @@
|
|||
rmdir /s /q publish
|
||||
|
||||
cd src
|
||||
rmdir /s /q bin
|
||||
rmdir /s /q obj
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net48 -o ..\publish\net48
|
||||
ilrepack /ndebug /wildcards /out:..\publish\SourceGit.exe ..\publish\net48\SourceGit.exe ..\publish\net48\*.dll
|
||||
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 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
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net6.0-windows --self-contained -o ..\publish\SourceGit
|
||||
|
||||
cd ../
|
||||
cd ..
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0-windows;net48</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0-windows</TargetFrameworks>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<UseWPF>true</UseWPF>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
|
@ -17,7 +17,4 @@
|
|||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
|
||||
<PackageReference Include="System.Text.Json" Version="5.0.2" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Reference in a new issue