-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Can't install .NET Compiler Platform SDK #18954
Comments
Edit: I next tried to create a File>New>C#>ClassLibrary (i.e. a standard desktop framework class library) and install a NuGet reference to Microsoft.CodeAnalysis. The NuGet installation failed because it said it couldn't find anything compatible with this target. I tried a few different target frameworks (40, 45, 452, 47) and got the same error on all of them. 4.5:
Next I tried to do File>New>.NET Standard Library. I guess by default this targets .NETStandard1.4? -- is a pain to find out with the "Properties" node absent from SolutionExplorer. Again NuGet failed saying it couldn't find anything compatible. I tried targeting .NETStandard 1.3 and got another error message:
Oh boy this is a challenge! Eventually by blind luck I picked .NET Framework 4.6 and it seems to have worked. |
Hmm... I guess I was mislead by a few things: (1) Leaving the default .NET4.5 target, it shows an option "Download .NET SDK" which isn't relevant to my current setup nor does it guide me in the right direction (2) The Installer workload seems to promise more than it actually delivers? |
@ljw1004 I am not saying anything you've reported is not a bug, just trying to unblock you.
With these changes I think most if not all of your pain points should be addressed |
Sure, understood (and appreciated), thanks! |
Issue moved to dotnet/roslyn-sdk #70 via ZenHub |
Version Used: VS 15.1 (26403.7) Release, Community Edition
Steps to Reproduce:
I installed the VSIX from it. Installation appeared to go okay. I searched for Analyzer in the File>New dialog, and the only C# result I got was "Download the .NET Compiler Platform SDK". So I guess installation hadn't worked.
I tried clicking on that FileNew>C#>Extensibility>Download Compiler Platform SDK. It took me to a local page C:\Users\ljw1004\Documents\Visual Studio 2017\Projects\CSharpCompilerPlatformSDKDownload1\index.html with a fwlink to https://go.microsoft.com/fwlink/?LinkID=526901, which points to the exact same download page as I tried in Step1 (if you open it in an external window) or which downloads Roslyn_SDK.vsix directly (if you click on the link inside VS). Regardless, it says "This product is already installed to all applicable products".
I tried going to Tools>Extensions and uninstalled the .NET Compiler Platform SDK. Then I launched the VS2017 installer, clicked on Modify, and turned on the "Visual Studio extension development" workload. This claims it lets you create code analyzers. (However, the "individual components" tab doesn't list any component that looks like it's at all related to .NET Compiler Platform SDK so I don't know if this really worked).
I then launched VS2017. Once again, the File>New dialog only had an option for "Download .NET Compiler Platform SDK". It let me install it okay (hence, the VS Installer checkbox apparently hadn't installed it!). But even after installing it, the File>New dialog continues to only have an option for "Download .NET Compiler Platform SDK".
Expected Behavior:
Please let me write an analyzer! I don't know how to get started!
Actual Behavior:
I can't even get started writing an analyzer.
The text was updated successfully, but these errors were encountered: