Fixed - bad runtime files copying in postbuilding of GenesisCordonelInterface project. Copying is replaced from TBF/Build/ to GCI/Build

This commit is contained in:
2026-05-04 15:40:05 +02:00
parent a475bd80f3
commit 86299da682
2 changed files with 11 additions and 44 deletions
@@ -1,20 +1,15 @@
<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>
<TbfPackageCommonDir>$(ProjectDir)..\packages\Common\</TbfPackageCommonDir>
</PropertyGroup>
<!-- Ensure destination directory exists -->
<MakeDir Directories="$(GciRuntimePackageDir)" />
<MakeDir Directories="$(TbfPackageCommonDir)" />
<!-- Collect runtime files from the project output directory -->
<ItemGroup>
<GciRuntimeFiles Include="$(TargetDir)*.dll" />
<GciRuntimeFiles Include="$(TargetDir)*.exe" />
@@ -22,15 +17,19 @@
<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" />
SkipUnchangedFiles="false"
OverwriteReadOnlyFiles="true" />
<Message Text="Copying GCI runtime package to TBF package common: $(TbfPackageCommonDir)" Importance="High" />
<Copy
SourceFiles="@(GciRuntimeFiles)"
DestinationFolder="$(TbfPackageCommonDir)"
SkipUnchangedFiles="false"
OverwriteReadOnlyFiles="true" />
</Target>