Skip to content

Commit

Permalink
Don't reference netstandard.dll by wildcard (dotnet#37660)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericstj authored and ViktorHofer committed May 14, 2019
1 parent d943b4d commit 30f4fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/generated/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 30f4fbc

Please sign in to comment.