Add a reference to the following assemblies (right clicking in References element under your project in the Project Explorer window, select "Add reference").Install the following NuGet packages (solution explorer -> Manage Nuget Packages -> Select the Browse tab -> Search for package -> click Install):.Create a new Visual Studio extension, in Visual Studio, by clicking File -> New Project -> VSIX Project (it will be under Templates -> Visual C# -> Extensibility).Microsoft Docs has a walk-through on how to create a new extension that shows the light bulb. So the goal is to show that small light bulb near some piece of code and when the user clicks on it we can generate some code based on the context around it. I'll assume you know nothing about Visual Studio extensions and Roslyn, but, at least, install Visual Studio SDK first. Here's my try to get a somewhat short, end-to-end tutorial on how to create a new Visual Studio extension, with Roslyn, parse some code and then generate some more. It turns out that there is a lot of knowledge out there, but quite spread. Recently I've been working on a Visual Studio extension to automate the tedious parts of code authoring at work.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |