Skip to content

Commit

Permalink
Add vs-threading dependency on the analyzers
Browse files Browse the repository at this point in the history
We had this in 15.x, but sometime lost it in 16.x.
  • Loading branch information
AArnott committed Jan 21, 2020
1 parent 68a6089 commit d19e113
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,9 @@
<PackageReference Include="XliffTasks" Version="1.0.0-beta.19253.2" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<!-- Don't consume the analyzers in this library itself,
but have a package dependency so users of this library will automatically get the analyzers.
This requires an MSBuild workaround as documented here: https://github.com/Microsoft/msbuild/issues/2661#issuecomment-338808137
-->
<ProjectReference Include="..\Microsoft.VisualStudio.Threading.Analyzers.CodeFixes\Microsoft.VisualStudio.Threading.Analyzers.CodeFixes.csproj">
<PrivateAssets>none</PrivateAssets>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
<UndefineProperties>TargetFramework</UndefineProperties>
</ProjectReference>
<!-- We don't consume the analyzers in this library itself,
but we reference the project to add a package dependency so users of this library will automatically get the analyzers. -->
<ProjectReference Include="..\Microsoft.VisualStudio.Threading.Analyzers.CodeFixes\Microsoft.VisualStudio.Threading.Analyzers.CodeFixes.csproj" PrivateAssets="none" />
</ItemGroup>
<Import Project="OptProf.targets" Condition=" '$(TargetFramework)' == 'net472' " />
</Project>

0 comments on commit d19e113

Please sign in to comment.