settings.targets 949 字节
Newer Older
1
<Project>
2 3 4 5
  <PropertyGroup>
    <ShouldVerifyClosure>true</ShouldVerifyClosure>
    <ShouldVerifyTypes>true</ShouldVerifyTypes>
  </PropertyGroup>
6 7 8 9 10

  <ItemGroup>
    <!-- intentionally dangling refs in shims -->
    <ExcludeFromClosure Include="@(NetFxReference)" />
    <IgnoredReference Include="@(NetFxReference)" />
11 12 13

    <!-- windows.winmd is not part of the framework -->
    <IgnoredReference Include="Windows" />
14
  </ItemGroup>
15 16 17 18 19 20 21 22

  <!-- Include NETStandard assemblies when considering runtime assets for conflict resolution
       works around https://github.com/dotnet/sdk/issues/18129 -->
  <Target Name="IncludeNetStandardConflictResolution" BeforeTargets="_HandlePackageFileConflicts">
    <ItemGroup>
      <_RuntimeAssetsForConflictResolution Include="@(Reference)" Condition="'%(Reference.NuGetPackageId)' == 'NETStandard.Library' or '%(Reference.NuGetPackageId)' == 'NETStandard.Library.Ref'" />
    </ItemGroup>
  </Target>
23
</Project>