blob: 9b431aa953af2db9dc36a57216462577b232d578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<Project>
<ItemGroup>
<IBCPackage Include="optimization.windows_nt-x64.ibc.corefx" Version="$(optimizationwindows_ntx64IBCCoreFxVersion)" />
<IBCPackage Include="optimization.linux-x64.ibc.corefx" Version="$(optimizationlinuxx64IBCCoreFxVersion)" />
<IBCPackage Include="optimization.windows_nt-x64.IBC.CoreCLR" Version="$(optimizationwindows_ntx64IBCCoreCLRVersion)" />
<IBCPackage Include="optimization.linux-x64.IBC.CoreCLR" Version="$(optimizationlinuxx64IBCCoreCLRVersion)" />
<PackageDownload Include="@(IBCPackage)" Version="[%(Version)]" />
</ItemGroup>
<!-- IBC data packages don't follow NuGet conventions. -->
<Target Name="GetIBCData"
AfterTargets="Restore">
<ItemGroup>
<IBCPackage>
<PackagePath>$(NuGetPackageRoot)%(IBCPackage.Identity)\%(IBCPackage.Version)</PackagePath>
</IBCPackage>
<IBCPackage Condition="$([System.String]::new('%(Identity)').ToLower().Contains('windows_nt'))">
<SubdirectoryName>Windows</SubdirectoryName>
</IBCPackage>
<IBCPackage Condition="$([System.String]::new('%(Identity)').ToLower().Contains('linux'))">
<SubdirectoryName>Linux</SubdirectoryName>
</IBCPackage>
<_optimizationDataSourceFile Include="%(IBCPackage.PackagePath)\**\*.dll;%(IBCPackage.PackagePath)\**\*.ibc" SubdirectoryName="%(IBCPackage.SubdirectoryName)" />
</ItemGroup>
<Error Condition="'@(_optimizationDataSourceFile)' == ''" Text="Failed to restore optimization data" />
<Copy SourceFiles="@(_optimizationDataSourceFile)"
DestinationFiles="@(_optimizationDataSourceFile->'$(IbcOptimizationDataDir)%(SubdirectoryName)\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true"
UseHardlinksIfPossible="true" />
</Target>
</Project>
|