У меня есть проекты netstandard2.0:
- projectA / src / client / client.csproj
- projectB / src / lib / lib.csproj
проект Справочный проект клиента b lib, например:
...
<ItemGroup>
<ProjectReference Include="..\..\..\projectB\src\lib.csproj">
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<IncludeAssets>lib.dll</IncludeAssets>
</ProjectReference>
</ItemGroup>
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
</ItemGroup>
</Target>
...
Я пытаюсь создать пакет nuget: dotnet pack projectA/src/client.csproj --configuration Client
.nupkg содержит lib.dll, но ...
Когда я пытаюсь ссылаться на пакет для проекта C, я получаю projectC.csproj: [NU1101] Unable to find package projectB. No packages exist with this id in source(s): nuget.org
Как это исправить?