Skip to content

Commit 81e1150

Browse files
Enable single-file publish for Release builds
Adds PublishSingleFile and IncludeNativeLibrariesForSelfExtract to all executable projects, reducing publish output from 259 files to 3 standalone executables per platform. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2a675e8 commit 81e1150

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

MS2Create/MS2Create.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
</PropertyGroup>
1212
<PropertyGroup Condition="'$(Configuration)'=='Release'">
1313
<OutputPath>..\Release\</OutputPath>
14+
<PublishSingleFile>true</PublishSingleFile>
15+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1416
</PropertyGroup>
1517
<ItemGroup>
1618
<ProjectReference Include="..\MS2Lib\MS2Lib\MS2Lib.csproj"/>

MS2Extract/MS2Extract.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
</PropertyGroup>
1111
<PropertyGroup Condition="'$(Configuration)'=='Release'">
1212
<OutputPath>..\Release\</OutputPath>
13+
<PublishSingleFile>true</PublishSingleFile>
14+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1315
</PropertyGroup>
1416
<ItemGroup>
1517
<ProjectReference Include="..\MS2Lib\MS2Lib\MS2Lib.csproj"/>

MS2FileHeaderExporter/MS2FileHeaderExporter.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
</PropertyGroup>
1111
<PropertyGroup Condition="'$(Configuration)'=='Release'">
1212
<OutputPath>..\Release\</OutputPath>
13+
<PublishSingleFile>true</PublishSingleFile>
14+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1315
</PropertyGroup>
1416
<ItemGroup>
1517
<ProjectReference Include="..\MS2Lib\MS2Lib\MS2Lib.csproj"/>

0 commit comments

Comments
 (0)