Skip to content

Commit f8005fd

Browse files
timcassellsilkfire
authored andcommitted
Revert annotations csproj.
Add analyzers to samples.
1 parent a08c0f0 commit f8005fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

samples/BenchmarkDotNet.Samples/BenchmarkDotNet.Samples.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@
4040
<ProjectReference Include="..\..\src\BenchmarkDotNet.Diagnostics.Windows\BenchmarkDotNet.Diagnostics.Windows.csproj" />
4141
<ProjectReference Include="..\..\src\BenchmarkDotNet.TestAdapter\BenchmarkDotNet.TestAdapter.csproj" />
4242
</ItemGroup>
43+
<ItemGroup>
44+
<!-- Enables analyzers for this project (this is required since ProjectReference is not transitive). -->
45+
<ProjectReference Include="..\..\src\BenchmarkDotNet.Analyzers\BenchmarkDotNet.Analyzers.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer"/>
46+
</ItemGroup>
4347
</Project>

src/BenchmarkDotNet.Annotations/BenchmarkDotNet.Annotations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
</ItemGroup>
1717
<ItemGroup>
1818
<ProjectReference Include="..\BenchmarkDotNet.Analyzers\BenchmarkDotNet.Analyzers.csproj" PrivateAssets="all" />
19-
<Content Include="..\BenchmarkDotNet.Analyzers\bin\$(Configuration)\netstandard2.0\BenchmarkDotNet.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
19+
<None Include="$(OutputPath)\netstandard2.0\BenchmarkDotNet.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
2020
</ItemGroup>
2121
</Project>

0 commit comments

Comments
 (0)