37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<!--
|
|
Creates a GCI runtime package after each successful build.
|
|
The package contains the standalone executable and all runtime dependencies.
|
|
-->
|
|
<Target Name="CopyGciRuntimeToRuntimePackage" AfterTargets="Build">
|
|
|
|
<!-- Destination directory for the GCI runtime package -->
|
|
<PropertyGroup>
|
|
<GciRuntimePackageDir>$(ProjectDir)RuntimePackage\Package\</GciRuntimePackageDir>
|
|
</PropertyGroup>
|
|
|
|
<!-- Ensure destination directory exists -->
|
|
<MakeDir Directories="$(GciRuntimePackageDir)" />
|
|
|
|
<!-- Collect runtime files from the project output directory -->
|
|
<ItemGroup>
|
|
<GciRuntimeFiles Include="$(TargetDir)*.dll" />
|
|
<GciRuntimeFiles Include="$(TargetDir)*.exe" />
|
|
<GciRuntimeFiles Include="$(TargetDir)*.config" />
|
|
<GciRuntimeFiles Include="$(TargetDir)*.json" />
|
|
</ItemGroup>
|
|
|
|
<!-- Build output messages -->
|
|
<Message Text="Copying GCI runtime package to $(GciRuntimePackageDir)" Importance="High" />
|
|
<Message Text="Files: @(GciRuntimeFiles)" Importance="Normal" />
|
|
|
|
<!-- Copy runtime files into the package directory -->
|
|
<Copy
|
|
SourceFiles="@(GciRuntimeFiles)"
|
|
DestinationFolder="$(GciRuntimePackageDir)"
|
|
SkipUnchangedFiles="false" />
|
|
|
|
</Target>
|
|
|
|
</Project> |