NuGet Pack Target should have a switch for creating analyzers #6793
Labels
Area:Analyzers
Functionality:Pack
Priority:2
Issues for the current backlog.
Style:PackageReference
Type:Feature
Milestone
Today, the
NuGet.Build.Tasks.Pack.targets
only supports creatingtools
(via theIsTool
property) andlib
(the default) packages.The targets should be updated to additionally support an
IsAnalyzer
property which defaults the various values to support the creation of .NET Analyzers (https://docs.microsoft.com/en-us/nuget/reference/analyzers-conventions).Ideally, there would be additional properties to also control things like the
supported framework
(currentlydotnet
is the only supported),supported architecture
, andsupported languages
.The current workaround is to manually set
BuildOutputTargetFolder
toanalyzers/{framework_name}{version}/{supported_architecture}/{supported_language}
where{framework_name}{version}
,{supported_architecture}
and{supported_language}
are optional.The text was updated successfully, but these errors were encountered: