Fix expected analyzer layout in nuget packages (#87860)
authorViktor Hofer <viktor.hofer@microsoft.com>
Wed, 21 Jun 2023 09:22:33 +0000 (11:22 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 09:22:33 +0000 (11:22 +0200)
Regressed with https://github.com/dotnet/runtime/pull/87726
Reported in https://github.com/dotnet/aspnetcore/pull/48917#issuecomment-1599944176

eng/generatorProjects.targets

index f94bad9..b5bffde 100644 (file)
@@ -15,7 +15,7 @@
           DependsOnTargets="$(GenerateNuspecDependsOn)"
           Returns="@(_AnalyzerPackFile)">
     <PropertyGroup>
-      <_analyzerPath>$(GeneratorProjectBaseTargetPath)</_analyzerPath>
+      <_analyzerPath>analyzers/dotnet</_analyzerPath>
       <_analyzerPath Condition="'$(AnalyzerRoslynVersion)' != ''">$(_analyzerPath)/roslyn$(AnalyzerRoslynVersion)</_analyzerPath>
       <_analyzerPath Condition="'$(AnalyzerLanguage)' != ''">$(_analyzerPath)/$(AnalyzerLanguage)</_analyzerPath>
     </PropertyGroup>
@@ -31,4 +31,4 @@
            Condition="'@(_AnalyzerPackFile)' == ''" />
   </Target>
 
-</Project>
\ No newline at end of file
+</Project>