[英]Unable to reference dll included in a Nuget Package
我遇到了一个奇怪的问题,我无法引用 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" />
实际上,清理本地 nuget 缓存并重新安装软件包解决了这个问题...大声笑
使用以下命令通过 nuget 包管理器清除本地 nuget 缓存:
nuget locals all -list
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.