-1

我遇到了一个奇怪的问题,我无法引用 nuget 包中包含的 dll。

奇怪的是,使用这个包的所有其他人都能够引用这个 dll 并使用其中的类。

我的 Visual Studio 中是否有某些设置可能会阻止这种情况?

我可以通过解决方案资源管理器视图看到包含在这个 nuget 包中的 dll ......

提前致谢!

++ 为项目提供更多细节我们在项目中没有 package.config 文件。这是一个netcoreapp2.1项目

我们通过引用包

<PackageReference Include="Microsoft.MarketplaceServices.CatalogOrchestrator.EventPublishers.AzureFunctions" Version="1.1.0" />

在 .csproj 文件中

dll是通过csproj中的以下行通过包引用的

<ProjectReference Include="..\EventPublishers.Common\EventPublishers.Common.csproj" PrivateAssets="All" />
4

1 回答 1

0

Actually, cleaning local nuget cache and reinstalling packages resolved the issue... lol

cleaned local nuget cache through nuget package manager with below command:

nuget locals all -list
于 2019-05-01T07:05:17.310 回答