MSBuild nuget通用软件包目标无法解析

时间:2018-12-16 16:38:19

标签: msbuild nuget nuget-package msbuild-target

我具有CommonExternal.targetsShared.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>

0 个答案:

没有答案