roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

Template "Analyzer wite Code Fix (.NET Standard)" displays errors and does not initialize

Open fjoppe opened this issue 5 years ago • 1 comments

Hi,

I hope I targetted the correct repository for this issue.

I'm trying to follow this tutorial, but I never get to step 3 in "Writing an analyzer" because after chosing the template, multiple errors are displayed, and when clicking them away, an empty solution is displayed.

I had several tries to this, and seen many different errors, which changed by installing additional compononents via the VS installer, ie dotnet core versions which are out of support. I also installed the Visual Studio 2019 preview to overcome other error messages.

When I choose the template, I choose Framework 4.7.2. I also had the issue with other framework versions (4.5-4.8). There's no dotnet core in the list.

The errors which I currently get are all in this format:

A problem was encountered creating the sub project 'Analyzer2'. Operation could not be completed. The project file '|path|\Analyzer2.csproj' cannot be migrated. See the migration report for details.

All errors refer to csproj files. Not one csproj is created in the target path.

My configuration:

Microsoft Visual Studio Community 2019 Preview Version 16.8.0 Preview 3.2 VisualStudio.16.Preview/16.8.0-pre.3.2+30524.135 Microsoft .NET Framework Version 4.8.03752

Installed Version: Community

C# Tools 3.8.0-3.20458.6+b446afd34759150c2ea3b86ab794104e12e64db1 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

GitHub.VisualStudio 2.11.106.19330 A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

NuGet Package Manager 5.8.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

Syntax Visualizer 1.0 An extension for visualizing Roslyn SyntaxTrees.

Visual Basic Tools 3.8.0-3.20458.6+b446afd34759150c2ea3b86ab794104e12e64db1 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.8.0-beta.20428.2+068ebd3c599bc5a47163a18b8b90d2fe5517186e Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

My installation configuration is as follows:

{ "version": "1.0", "components": [ "Microsoft.VisualStudio.Component.CoreEditor", "Microsoft.VisualStudio.Workload.CoreEditor", "Microsoft.NetCore.Component.Runtime.5.0", "Microsoft.NetCore.Component.Runtime.3.1", "Microsoft.VisualStudio.Component.NuGet", "Microsoft.Net.Component.4.6.1.TargetingPack", "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.VisualStudio.Component.Roslyn.LanguageServices", "Microsoft.VisualStudio.Component.FSharp", "Microsoft.VisualStudio.Component.FSharp.WebTemplates", "Microsoft.Net.Core.Component.SDK.2.1", "Microsoft.Net.Component.4.8.TargetingPack", "Microsoft.VisualStudio.Component.FSharp.Desktop", "Microsoft.Component.CodeAnalysis.SDK", "Microsoft.VisualStudio.Component.GraphDocument", "Microsoft.Net.Core.Component.SDK.2.2", "Microsoft.Net.Core.Component.SDK.3.0", "Microsoft.Net.Component.4.6.1.SDK", "Microsoft.Net.Component.4.7.2.SDK" ] }

fjoppe avatar Sep 30 '20 12:09 fjoppe

I tried a few times and was not able to reproduce this. Can you post either a video or a complete/exact sequence of steps and screenshots for what you are trying to do?

sharwell avatar Dec 23 '20 15:12 sharwell