This is the code repository for Roslyn Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
Open-sourcing the C# and Visual Basic compilers is one of the most appreciated things by the .NET community, especially as it exposes rich code analysis APIs to analyze and edit code. If you want to use Roslyn API to write powerful extensions and contribute to the C# developer tool chain, then this book is for you. Additionally, if you are just a .NET developer and want to use this rich Roslyn-based functionality in Visual Studio to improve the code quality and maintenance of your code base, then this book is also for you.
All of the codes are organized as per the chapters, each folder has the codes related to that chapter or appendix.
For example: Roslyn-Cookbook/Chapter01/Recipe 1 - default analyzer/CSharpAnalyzers/CSharpAnalyzers/CSharpAnalyzers.Vsix/
The code will look like the following:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>
Following is the software-hardware list:
| Chapter | Software required (With version) | Free/Proprietary | If proprietary, can code testing be performed using a trial version | If proprietary, then cost of the software | Download links to the software |
|---|---|---|---|---|---|
| 1-5, 7-10 | Visual Studio 2017 Community edition | Free | https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15 | ||
| 6 | Visual Studio 2017 Enterprise edition | Proprietary | Yes | $499 | https://www.visualstudio.cm/thank-you-downloading-visual-studio/?sku=Enterprise&rel=15 |
| 7-10 | Github for desktop | Free | https://desktop.github.com/ |
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.