|
@@ -2,12 +2,11 @@
|
|
|
|
|
|
<PropertyGroup>
|
|
|
<OutputType>Exe</OutputType>
|
|
|
- <TargetFrameworks>net461;net5.0-windows</TargetFrameworks>
|
|
|
+ <TargetFrameworks>net461;net6.0-windows</TargetFrameworks>
|
|
|
<LangVersion>preview</LangVersion>
|
|
|
<Nullable>enable</Nullable>
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
<PublishTrimmed>true</PublishTrimmed>
|
|
|
- <TrimMode>Link</TrimMode>
|
|
|
|
|
|
<AssemblyTitle>Windows Service Wrapper</AssemblyTitle>
|
|
|
<Description>Allows arbitrary process to run as a Windows service by wrapping it.</Description>
|
|
@@ -16,11 +15,11 @@
|
|
|
<Copyright>Copyright (c) 2008-2020 Kohsuke Kawaguchi, Sun Microsystems, Inc., CloudBees, Inc., Oleg Nenashev and other contributors</Copyright>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
- <PropertyGroup Condition="'$(TargetFramework)' == 'net5.0-windows' AND '$(RuntimeIdentifier)' != ''">
|
|
|
+ <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0-windows' AND '$(RuntimeIdentifier)' != ''">
|
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
- <PropertyGroup Condition="'$(TargetFramework)' != 'net5.0-windows'">
|
|
|
+ <PropertyGroup Condition="'$(TargetFramework)' != 'net6.0-windows'">
|
|
|
<ILMergeVersion>3.0.41</ILMergeVersion>
|
|
|
</PropertyGroup>
|
|
|
|
|
@@ -28,7 +27,7 @@
|
|
|
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20303.1" />
|
|
|
</ItemGroup>
|
|
|
|
|
|
- <ItemGroup Condition="'$(TargetFramework)' != 'net5.0-windows'">
|
|
|
+ <ItemGroup Condition="'$(TargetFramework)' != 'net6.0-windows'">
|
|
|
<PackageReference Include="ilmerge" Version="$(ILMergeVersion)" />
|
|
|
<Reference Include="System.ServiceProcess" />
|
|
|
</ItemGroup>
|
|
@@ -38,18 +37,11 @@
|
|
|
<ProjectReference Include="..\WinSW.Plugins\WinSW.Plugins.csproj" />
|
|
|
</ItemGroup>
|
|
|
|
|
|
- <ItemGroup Condition="'$(TargetFramework)' != 'net5.0-windows'">
|
|
|
+ <ItemGroup Condition="'$(TargetFramework)' != 'net6.0-windows'">
|
|
|
<ProjectReference Include="..\WinSW.Tasks\WinSW.Tasks.csproj" ReferenceOutputAssembly="false" />
|
|
|
</ItemGroup>
|
|
|
|
|
|
- <Target Name="PublishCoreZip" AfterTargets="Publish" Condition="'$(TargetFramework)' == 'net5.0-windows' and '$(IncludeNativeLibrariesForSelfExtract)' != 'true'">
|
|
|
-
|
|
|
- <MakeDir Directories="$(ArtifactsPublishDir)" />
|
|
|
- <ZipDirectory SourceDirectory="$(PublishDir)" DestinationFile="$(ArtifactsPublishDir)WinSW-$(PlatformTarget).zip" Overwrite="true" />
|
|
|
-
|
|
|
- </Target>
|
|
|
-
|
|
|
- <Target Name="PublishCoreExe" AfterTargets="Publish" Condition="'$(TargetFramework)' == 'net5.0-windows' and '$(IncludeNativeLibrariesForSelfExtract)' == 'true'">
|
|
|
+ <Target Name="PublishCoreExe" AfterTargets="Publish" Condition="'$(TargetFramework)' == 'net6.0-windows'">
|
|
|
|
|
|
<MakeDir Directories="$(ArtifactsPublishDir)" />
|
|
|
<Copy SourceFiles="$(PublishDir)$(TargetName).exe" DestinationFiles="$(ArtifactsPublishDir)WinSW-$(PlatformTarget).exe" />
|
|
@@ -57,7 +49,7 @@
|
|
|
</Target>
|
|
|
|
|
|
<!-- Merge plugins and other DLLs into the executable -->
|
|
|
- <Target Name="Merge" BeforeTargets="AfterBuild" Condition="'$(TargetFramework)' != 'net5.0-windows'">
|
|
|
+ <Target Name="Merge" BeforeTargets="AfterBuild" Condition="'$(TargetFramework)' != 'net6.0-windows'">
|
|
|
|
|
|
<PropertyGroup>
|
|
|
<InputAssemblies>"$(OutDir)$(TargetFileName)"</InputAssemblies>
|
|
@@ -85,7 +77,7 @@
|
|
|
</Target>
|
|
|
|
|
|
<UsingTask TaskName="WinSW.Tasks.Trim" AssemblyFile="$(ArtifactsBinDir)WinSW.Tasks\$(Configuration)\net461\WinSW.Tasks.dll" />
|
|
|
- <Target Name="Trim" AfterTargets="Merge" Condition="'$(TargetFramework)' != 'net5.0-windows'">
|
|
|
+ <Target Name="Trim" AfterTargets="Merge" Condition="'$(TargetFramework)' != 'net6.0-windows'">
|
|
|
<Trim Path="$(ArtifactsPublishDir)WinSW-$(TargetFramework).exe" />
|
|
|
</Target>
|
|
|
|