Skip to content

Commit

Permalink
Merge pull request #582 from AArnott/addAnalyzerPkgDependency
Browse files Browse the repository at this point in the history
Add vs-threading dependency on the analyzers
  • Loading branch information
AArnott authored Jan 21, 2020
2 parents 68a6089 + d19e113 commit cdb0906
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 cdb0906

Please sign in to comment.