Fixed - bad runtime files copying in postbuilding of GenesisCordonelInterface project. Copying is replaced from TBF/Build/ to GCI/Build
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user