-
Notifications
You must be signed in to change notification settings - Fork 344
Update the compiler version and the language version to 7.3 #2161
Conversation
You sure this is a VSIX issue? Seems like an error in the package manifest or a mismatched version somewhere. (Though weirdly enough it does build correctly from the command line.) |
No, I am not sure if it is a VSIX issue. I will investigate tomorrow.
Yep, which is why the CI is also passing. |
csc.exe doesn't list 7.3 yet.
|
@agocke, do you have any suggestions on how to unblock us here? |
@ahsonkhan Which csc.exe was that from? Is there still an older version of some other csc installed from a previous extension that's messing this up? |
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe Where can I find the csc from the extension? |
It sounds like the compiler works. What are you blocked on? |
Building the solution using the command line works. However, I can't get it to build in Visual Studio.
|
Right, the problem is that you can't use the Microsoft.NETCore.Compilers package in VS. The build task inside targets netstandard2.0/netcoreapp2.0, but the MSBuild used in VS only targets desktop .NET. What you can do is use a combination of the Microsoft.NETCore.Compilers package and the Microsoft.Net.Compilers package. You can decide which one to use based on the |
Why would updating the compiler package version change this behavior? Also, what happens if I have a .NET Core application/library? Would we still end up with the MSBuild that targets desktop? That would be strange.
How (and where) is that property set? |
Because I changed our dependency to netstandard2.0 and you updated to the package that contains the change.
In VS? Yes.
It is an MSBuild built-in property that is always set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar enough with the corefxlab repo to sign off on this, but at least the compiler update looks good to me
Does this work now with the latest VS previews? |
I haven't tried it in a while. I will re-visit this after 2.1 RC and update this thread then. |
Superseded by #2298. Closing. |
cc @KrzysztofCwalina, @dotnet/corefxlab-contrib
Do not merge yet. Waiting for VS support for language version 7.3 (the VSIX doesn't seem to work).