|
47 | 47 | <PackagingContent Include="$(MSBuildThisFileDirectory)Microsoft.WinFX.targets" SubFolder="root\targets" />
|
48 | 48 | </ItemGroup>
|
49 | 49 |
|
50 |
| - <!-- |
51 |
| - Limit the assemblies that are packaged into Microsoft.NET.Sdk.WindowsDesktop |
52 |
| - --> |
53 |
| - <ItemGroup Condition="'$(TargetFramework)'=='net472'"> |
54 |
| - <PackagingAssemblyContent Include="System.Collections.Immutable.dll" /> |
55 |
| - <PackagingAssemblyContent Include="System.Memory.dll" /> |
56 |
| - <PackagingAssemblyContent Include="System.Numerics.Vectors.dll" /> |
57 |
| - <PackagingAssemblyContent Include="System.Reflection.Metadata.dll" /> |
58 |
| - <PackagingAssemblyContent Include="System.Runtime.CompilerServices.Unsafe.dll" /> |
59 |
| - </ItemGroup> |
| 50 | + <!-- Limit the assemblies that are packaged into Microsoft.NET.Sdk.WindowsDesktop --> |
60 | 51 | <ItemGroup>
|
61 | 52 | <PackagingAssemblyContent Include="PresentationBuildTasks.dll" />
|
62 |
| - <PackagingAssemblyContent Include="System.Reflection.MetadataLoadContext.dll" /> |
63 | 53 | </ItemGroup>
|
64 | 54 |
|
65 | 55 | <ItemGroup>
|
|
308 | 298 | </ItemGroup>
|
309 | 299 |
|
310 | 300 | <ItemGroup>
|
311 |
| - <PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkPackageVersion)" /> |
312 |
| - <PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildUtilitiesCorePackageVersion)" /> |
313 |
| - <PackageReference Include="System.Reflection.MetadataLoadContext" Version="$(SystemReflectionMetadataLoadContextVersion)" /> |
| 301 | + <PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkPackageVersion)" IncludeAssets="compile" /> |
| 302 | + <PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildUtilitiesCorePackageVersion)" IncludeAssets="compile" /> |
314 | 303 |
|
315 |
| - <!-- |
316 |
| - Provide specific/old versions for PresentationBuildTasks which needs to run inside MSBuild |
317 |
| - --> |
318 |
| - <PackageReference Include="System.CodeDom" Version="$(SystemCodeDomPackageVersionForPresentationBuildTasks)" /> |
| 304 | + <!-- Reference (don't redistribute) the live version of SRM on .NETCoreApp and fallback to the toolset version for .NET Framework. --> |
| 305 | + <PackageReference Include="System.Reflection.MetadataLoadContext" IncludeAssets="compile"> |
| 306 | + <Version Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">$(SystemReflectionMetadataLoadContextVersion)</Version> |
| 307 | + <Version Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">$(SystemReflectionMetadataLoadContextToolsetVersion)</Version> |
| 308 | + </PackageReference> |
| 309 | + <!-- System.CodeDom live version is provided by the SDK. Use latest and don't redistribute it. --> |
| 310 | + <PackageReference Include="System.CodeDom" Version="$(SystemCodeDomPackageVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" IncludeAssets="compile" /> |
319 | 311 | </ItemGroup>
|
320 | 312 |
|
321 | 313 | </Project>
|
0 commit comments