File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/coreclr/nativeaot/BuildIntegration Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
2
<!-- NativeAOT-LLVM: override ImportRuntimeIlcPackageTarget to not depend on the SDK-provided ResolvedILCompilerPack item -->
3
3
<Target Name =" ImportRuntimeIlcPackageTarget" Condition =" '$(BuildingFrameworkLibrary)' != 'true' and '$(_targetArchitecture)' == 'wasm'" DependsOnTargets =" $(ImportRuntimeIlcPackageTargetDependsOn)" BeforeTargets =" Publish" >
4
- <Error Condition =" '@(PackageDefinitions)' == ''" Text =" The PackageDefinitions ItemGroup is required for target ImportRuntimeIlcPackageTarget" />
4
+ <Error Condition =" '@(PackageDefinitions)' == ''"
5
+ Text =" The PackageDefinitions ItemGroup is required for target ImportRuntimeIlcPackageTarget" />
6
+
7
+ <PropertyGroup >
8
+ <_IlcHostPackageVersion Condition =" '%(PackageDefinitions.Name)' == '$(_hostPackageName)'" >%(PackageDefinitions.Version)</_IlcHostPackageVersion >
9
+ <_IlcRuntimePackageVersion Condition =" '%(PackageDefinitions.Name)' == '$(_targetPackageName)'" >%(PackageDefinitions.Version)</_IlcRuntimePackageVersion >
10
+ </PropertyGroup >
11
+
12
+ <Warning Condition =" '$(_IlcHostPackageVersion)' != '$(_IlcRuntimePackageVersion)'"
13
+ Text =" $(_hostPackageName) version ($(_IlcHostPackageVersion)) differs from the Microsoft.DotNet.ILCompiler.LLVM version ($(_IlcRuntimePackageVersion)). This will likely result in build or runtime failures." />
5
14
6
15
<PropertyGroup >
7
16
<IlcHostPackagePath Condition =" '%(PackageDefinitions.Name)' == '$(_hostPackageName)'" >%(PackageDefinitions.ResolvedPath)</IlcHostPackagePath >
You can’t perform that action at this time.
0 commit comments