Skip to content

Conversation

@jaredpar
Copy link
Member

This updates the compilation test helpers to detect when duplicate references are passed to it. For instance two versions of mscorlib, System.Core, etc ... Most of this change is fixing up the ~600 places where we incorrectly passed duplicate references. The handful of places where we deliberately passed duplicates were updated to use the correct helpers.

jaredpar added 3 commits May 31, 2018 13:59
This updates the resource DLL which corrects the version of mscorlib for
the net45beta resource.
This updates our duplicate reference check to compare names in addition
to reference identity. This found ~600 tests which were inadvertently
passing duplicate references to our compilation helpers.

closes dotnet#25509
@jaredpar jaredpar requested review from a team as code owners May 31, 2018 21:02
@jaredpar
Copy link
Member Author

CC @roslyn-compiler for review

";

var compilation = CreateCompilation(source, references: new[] { arSA, enUS });
var compilation = CreateEmptyCompilation(source, TargetFrameworkUtil.StandardReferences.AddRange(new[] { arSA, enUS }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe we should have an AddRange with params?

@jcouv jcouv added this to the 15.8 milestone May 31, 2018
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks

@jaredpar jaredpar merged commit 52a12cc into dotnet:master Jun 1, 2018
@jaredpar jaredpar deleted the fix-basic4 branch June 1, 2018 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants