Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Microsoft.NET.Compilers #15731

Merged
merged 1 commit into from
May 16, 2019
Merged

Use Microsoft.NET.Compilers #15731

merged 1 commit into from
May 16, 2019

Conversation

natemcmaster
Copy link
Contributor

This upgrades the compiler to the version bundled in Arcade, which is 3.2.0-beta1-19253-08 right now. This allows this repo to consume a compiler that is newer than what is bundled in the .NET Core SDK. This is valuable during previews to get the latest C# 8 features and test them against EF's expression tree -> SQL code.

This should workaround aspnet/AspNetCore-Internal#2476.

@natemcmaster natemcmaster requested a review from ajcvickers May 15, 2019 22:45
@natemcmaster natemcmaster requested a review from dougbu as a code owner May 15, 2019 22:45
@@ -1,11 +1,12 @@
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pro-tip: MSBuild 16+ does this automagically now :) dotnet/msbuild#1299

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, do we have a Web SDK issue to stop setting $(MSBuildAllProjects) and something similar for other MSBuild files we ship?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't looked. I believe dotnet/sdk cleaned all these usages up, so we should probably do the same in the websdk.

@natemcmaster natemcmaster requested a review from bricelam May 15, 2019 22:46
@@ -1,11 +1,12 @@
<Project>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, do we have a Web SDK issue to stop setting $(MSBuildAllProjects) and something similar for other MSBuild files we ship?

</PropertyGroup>
<PropertyGroup Label="Arcade settings">
<!-- Opt-in to using the version of the Roslyn compiler bundled with Arcade. -->
<UsingToolMicrosoftNetCompilers>true</UsingToolMicrosoftNetCompilers>
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this light up in VS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This overrides the version of the compiler bundled with VS and dotnet.exe

@natemcmaster natemcmaster merged commit 3c9fd8f into dotnet:master May 16, 2019
@natemcmaster natemcmaster deleted the roslyn branch May 16, 2019 00:30
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.

3 participants