我具有CommonExternal.targets
和Shared.Common.csproj
的文件结构,但是在“依赖关系”中看不到Sonar分析器。
CommonExternal.targets
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="SonarAnalyzer.CSharp" Version="7.8.0.7320" />
</ItemGroup>
</Project>
Shared.Common.csproj
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="CommonExternal.targets" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Shared.Common</AssemblyName>
<RootNamespace>Shared.Common</RootNamespace>
</PropertyGroup>
</Project>