- Roslyn Cookbook
- Manish Vasani
- 168字
- 2021-07-15 17:07:36
How to do it...
- Build CSharpAnalyzers solution in Visual Studio by executing the Build | Build Solution command.
- Open the binary output folder for the CSharpAnalyzers project (<%SolutionFolder%>\CSharpAnalyzers\bin\debug) in Windows Explorer and verify that the NuGet package for the analyzer named, CSharpAnalyzers.1.0.X.Y.nupkg, is generated in the folder.
- Double-click on the Diagnostic.nuspec file in the CSharpAnalyzers project in Solution Explorer to view and configure the properties of the nupkg.

- Rebuild the project to regenerate the nupkg with new properties.
- Publish the nupkg as a public or private package by following the steps listed here: https://docs.microsoft.com/en-us/nuget/create-packages/publish-a-package.
- Open the binary output folder for the CSharpAnalyzers.Vsix project (<%SolutionFolder%\CSharpAnalyzers.Vsix\bin\debug) in Windows Explorer and verify that VSIX for the analyzer named, CSharpAnalyzers.Vsix.vsix, is present in the folder.
- Double-click on the source.extension.vsixmanifest file in the CSharpAnalyzers.Vsix project in the Solution Explorer to view and configure the properties of the VSIX package.

- Rebuild the VSIX project to regerate the VSIX.
- Publish it to the Visual Studio Extension Gallery by following the steps listed here: https://msdn.microsoft.com/en-us/library/ff728613.aspx.
推薦閱讀
- AngularJS入門與進(jìn)階
- Java程序設(shè)計(jì)(慕課版)
- SQL基礎(chǔ)教程(視頻教學(xué)版)
- INSTANT OpenNMS Starter
- Oracle Exadata專家手冊
- 表哥的Access入門:以Excel視角快速學(xué)習(xí)數(shù)據(jù)庫開發(fā)(第2版)
- Python編程實(shí)戰(zhàn)
- Learning ArcGIS for Desktop
- Visual C#.NET Web應(yīng)用程序設(shè)計(jì)
- Java并發(fā)編程:核心方法與框架
- 深度學(xué)習(xí)程序設(shè)計(jì)實(shí)戰(zhàn)
- Python Deep Learning
- Android應(yīng)用程序設(shè)計(jì)
- AngularJS UI Development
- Learning Alfresco Web Scripts