Skip to content

Commit

Permalink
Reference analyzer directly in test project if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 5, 2023
1 parent 889f8c4 commit ae59975
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ExportingAssembly/ExportingAssembly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@
<ItemGroup Condition="'$(TestNuPkg)' == 'true'">
<PackageReference Include="DNNE" Version="2.*" />
</ItemGroup>

<!-- If we're not using the NuGet package, we need to manually reference the analyzer project -->
<ItemGroup Condition="'$(TestNuPkg)' != 'true'">
<ProjectReference Include="$(SrcRoot)dnne-analyzers/dnne-analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>

0 comments on commit ae59975

Please sign in to comment.