Don't reference netstandard.dll by wildcard (dotnet/corefx#37660)
authorEric StJohn <ericstj@microsoft.com>
Tue, 14 May 2019 23:13:50 +0000 (16:13 -0700)
committerViktor Hofer <viktor.hofer@microsoft.com>
Tue, 14 May 2019 23:13:50 +0000 (01:13 +0200)
NetStandard.dll is built during the same phase as the other generated shims.
We use a ProjectReference to correctly sequence it before other generated
shims.  Make sure that building a generated shim after building
netstandard.csproj doesn't result in 2 netstandard.dll's being passed to
the compiler.

Commit migrated from https://github.com/dotnet/corefx/commit/30f4fbcb5bc16bdb3953d9186f20606a0f134f2d

src/libraries/shims/generated/Directory.Build.props

index c0fede3..33ac712 100644 (file)
@@ -14,7 +14,7 @@
     <!-- reference everything but self -->
     <ReferencePath
       Include="$(RefPath)*.dll"
-      Exclude="$(RefPath)$(MSBuildProjectName).dll" />
+      Exclude="$(RefPath)$(MSBuildProjectName).dll;$(RefPath)netstandard.dll" />
 
     <!-- required by compiler to resolve core types -->
     <ProjectReference Condition="'$(MSBuildProjectName)' != 'netstandard'"