msbuild/template_feed
Jenny Bai 2d924ca8c2
pack template for custom analyzer (#10155)
Fixes #9915

Context
#9789 added a template for custom analyzer.
In order for that to be usable by our customers - we need to be publishing this to nuget feed along with our other binaries. So we should have the package produced from our repo - ideally as part of our build script

Changes Made
Create a template package project with property <GeneratePackageOnBuild>true</GeneratePackageOnBuild>that pack the templates into a nuget package when build. Add the package project in the msbuild solution in order to build the project.

Testing
https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=9602998&view=artifacts&pathAsName=false&type=publishedArtifacts in the packageArtifacts folder.

image
2024-05-27 14:24:46 +08:00
..
content/Microsoft.AnalyzerTemplate pack template for custom analyzer (#10155) 2024-05-27 14:24:46 +08:00
Microsoft.Build.Templates.csproj pack template for custom analyzer (#10155) 2024-05-27 14:24:46 +08:00
README.md pack template for custom analyzer (#10155) 2024-05-27 14:24:46 +08:00

README.md

MSBuild Custom Analyzer Template Package

The package contains the template designed to streamline the creation of MSBuild analyzer libraries.

Template name Short name Description
MSBuild Custom Analyzer Template msbuildanalyzer A project for creating a MSBuild analyzer library that targets .NET Standard.

The package is available for download from nuget.org. Please feel to contribute or provide the feedback in discussions or via opening the issue in dotnet/msbuild repo.