无法引用Nuget包中包含的dll

问题描述 投票:-1回答:1

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

奇怪的是,使用这个包的每个人都能够引用这个dll并使用它的类。

我的Visual Studio中是否有某个设置可能会阻止这个?

我可以通过解决方案资源管理器视图将dll作为此nuget包的一部分包含在内...

提前致谢!

++提供项目的更多细节我们在项目中没有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" />
.net visual-studio nuget-package visual-studio-2019 dll-reference
1个回答
0
投票

实际上,清理本地nuget缓存并重新安装包解决了这个问题...大声笑

使用以下命令通过nuget包管理器清除本地nuget缓存:

nuget locals all -list
© www.soinside.com 2019 - 2024. All rights reserved.