File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 64
64
65
65
<ItemGroup>
66
66
<!-- Use the same NETCore shared framework as repo built against except when building product code in servicing. -->
67
- <KnownFrameworkReference Update="Microsoft.NETCore.App">
67
+ <!-- We cannot use live shims when building tool packs in VMR - only package for current arch is available. -->
68
+ <KnownFrameworkReference Update="Microsoft.NETCore.App" Condition=" '$(DotNetBuild)' != 'true' OR '$(PackAsToolShimRuntimeIdentifiers)' == '' ">
68
69
<LatestRuntimeFrameworkVersion
69
70
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRuntimeVersion}</LatestRuntimeFrameworkVersion>
70
71
<TargetingPackVersion
83
84
<RuntimePackRuntimeIdentifiers Condition="'$(DotNetBuild)' == 'true'">%(RuntimePackRuntimeIdentifiers);$(TargetRuntimeIdentifier)</RuntimePackRuntimeIdentifiers>
84
85
</KnownFrameworkReference>
85
86
86
- <KnownAppHostPack Update="Microsoft.NETCore.App">
87
+ <!-- We cannot use live shims when building tool packs in VMR - only package for current arch is available. -->
88
+ <KnownAppHostPack Update="Microsoft.NETCore.App" Condition=" '$(DotNetBuild)' != 'true' OR '$(PackAsToolShimRuntimeIdentifiers)' == '' ">
87
89
<AppHostPackVersion
88
90
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRuntimeVersion}</AppHostPackVersion>
89
91
<AppHostRuntimeIdentifiers Condition=" '$(DotNetBuildSourceOnly)' == 'true' ">$(TargetRuntimeIdentifier)</AppHostRuntimeIdentifiers>
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<PropertyGroup Condition =" '$(PackAsTool)' == 'true' " >
3
3
<!-- Microsoft tool packages are required to target both x64 and x86. -->
4
- <!-- In VMR builds we only use the current RID. -->
5
- <PackAsToolShimRuntimeIdentifiers Condition =" '$(IsShippingPackage)' == 'true' AND '$(DotNetBuild)' != 'true' " >win-x64;win-x86</PackAsToolShimRuntimeIdentifiers >
6
- <PackAsToolShimRuntimeIdentifiers Condition =" '$(IsShippingPackage)' == 'true' AND '$(DotNetBuild)' == 'true' AND '$(TargetOsName)' == 'win' " >$(TargetRid)</PackAsToolShimRuntimeIdentifiers >
4
+ <PackAsToolShimRuntimeIdentifiers Condition =" '$(IsShippingPackage)' == 'true' AND ('$(DotNetBuild)' != 'true' OR '$(TargetOsName)' == 'win')" >win-x64;win-x86</PackAsToolShimRuntimeIdentifiers >
7
5
<!-- None of the tool projects are project reference providers. -->
8
6
<IsProjectReferenceProvider >false</IsProjectReferenceProvider >
9
7
<!--
You can’t perform that action at this time.
0 commit comments