summaryrefslogtreecommitdiff
path: root/src/.nuget/optdata/ibcmerge.csproj
diff options
context:
space:
mode:
Diffstat (limited to 'src/.nuget/optdata/ibcmerge.csproj')
-rw-r--r--src/.nuget/optdata/ibcmerge.csproj18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/.nuget/optdata/ibcmerge.csproj b/src/.nuget/optdata/ibcmerge.csproj
index 9dae43fd14..d8dd2a461c 100644
--- a/src/.nuget/optdata/ibcmerge.csproj
+++ b/src/.nuget/optdata/ibcmerge.csproj
@@ -9,8 +9,24 @@
<PackageReference Include="microsoft.dotnet.ibcmerge" Version="[$(IbcMergePackageVersion)]" Condition="'$(IbcMergePackageVersion)'!=''" />
</ItemGroup>
+ <!-- -->
+ <!-- Task: DumpIbcMergePackageVersion -->
+ <!-- -->
+ <!-- Notes: -->
+ <!-- -->
+ <!-- DumpIbcMergePackageVersion is used by build.sh and build.cmd to pass -->
+ <!-- the version information to cmake. The task will write a file to be -->
+ <!-- read back by build.cmd/sh. The path for the file is: -->
+ <!-- $(IbcMergePackageVersionOutputFile) -->
+ <!-- -->
<Target Name="DumpIbcMergePackageVersion">
- <Message Importance="high" Text="$(IbcMergePackageVersion)" />
+ <!-- Error if PgoDataPackageVersionOutputFile is not set. -->
+ <Error Condition="'$(IbcMergePackageVersionOutputFile)'==''" Text="IbcMergePackageVersionOutputFile must be passed as a property." />
+
+ <!-- Cleanup old version file -->
+ <Delete Files="$(IbcMergePackageVersionOutputFile)" Condition="Exists('$(IbcMergePackageVersionOutputFile)')" />
+ <WriteLinesToFile File="$(IbcMergePackageVersionOutputFile)" Lines="$(optimizationIBCCoreCLRVersion)" Overwrite="true"/>
+ <Message Text="IbcMergePackageVersion: $(IbcMergePackageVersion) written to: $(IbcMergePackageVersionOutputFile)" Importance="High" />
</Target>
<PropertyGroup>