Add multi-platform publishing support with single-file, self-contained deployment options
This commit is contained in:
parent
85eedab29d
commit
91d7c8116e
1 changed files with 28 additions and 0 deletions
|
|
@ -7,6 +7,34 @@
|
|||
<RootNamespace>cs_mic_mcp</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<RuntimeIdentifiers>
|
||||
linux-x64;linux-arm64;win-x64;osx-x64;osx-arm64
|
||||
</RuntimeIdentifiers>
|
||||
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<SelfContained>true</SelfContained>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="PublishAll">
|
||||
<MSBuild
|
||||
Projects="$(MSBuildProjectFullPath)"
|
||||
Targets="Publish"
|
||||
BuildInParallel="true"
|
||||
Properties="
|
||||
Configuration=Release;
|
||||
RuntimeIdentifier=%(ReleaseRid.Identity);
|
||||
PublishDir=$(MSBuildProjectDirectory)/bin/Publish/%(ReleaseRid.Identity)/" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<ReleaseRid Include="linux-x64" />
|
||||
<ReleaseRid Include="linux-arm64" />
|
||||
<ReleaseRid Include="win-x64" />
|
||||
<ReleaseRid Include="osx-x64" />
|
||||
<ReleaseRid Include="osx-arm64" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CapyKit" Version="1.0.4" />
|
||||
<PackageReference Include="CSMic" Version="2.1.0" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue