Skip to content

Move compiler core tests to use netstandard2.0 RTM#24393

Merged
jaredpar merged 6 commits intodotnet:dev15.7.xfrom
jaredpar:fix-coreref
Jan 23, 2018
Merged

Move compiler core tests to use netstandard2.0 RTM#24393
jaredpar merged 6 commits intodotnet:dev15.7.xfrom
jaredpar:fix-coreref

Conversation

@jaredpar
Copy link
Copy Markdown
Member

This moves the compiler tests to use the netstandard2.0 RTM binaries when creating in memory compilations. This does mean a few of our tests had to move back to targeting desktop due to a change in the set of types available. For example ValueTuple is present by default in netstandard2.0 and hence any tests that depended on adding it, or it's presence being absent, had to move back to target net46 for now.

This changes the reference assemblies we use for the CoreClr compiler
compilation to be Net Standard 2.0 RTM. Previously they were a beta
version.

This did mean a number of tests had to be moved to be desktop specific
again. This is primarily due to the presence of ValueTuple as a default
type in Net Standard 2.0. Tests that relied on ValueTuple not being
defined had to be moved to net461 which doesn't have that type defined
by default.
@jaredpar jaredpar requested review from a team as code owners January 23, 2018 16:24
@jaredpar jaredpar changed the base branch from master to dev15.7.x January 23, 2018 16:24
Now that the netstandard2.0 references are available via the
MS.CA.Test.Reosurces.Proprietary NuGet package we no longer need to copy
them around on the file system (that's where they were previously being
referenced from).
It was still relying on the 'ref' directory. Changed it to use the
resource image.
Copy link
Copy Markdown
Member

@agocke agocke left a comment

Choose a reason for hiding this comment

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

LGTM

@jaredpar jaredpar changed the title WIP: Move compiler core tests to use netstandard2.0 RTM Move compiler core tests to use netstandard2.0 RTM Jan 23, 2018
@jaredpar
Copy link
Copy Markdown
Member Author

CC @dotnet/roslyn-compiler for review.

Copy link
Copy Markdown
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

@jaredpar jaredpar merged commit 510d40c into dotnet:dev15.7.x Jan 23, 2018
@jaredpar jaredpar deleted the fix-coreref branch January 23, 2018 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants