.NET核心:矛盾的组装参考

发布于 2025-01-30 03:38:36 字数 417 浏览 0 评论 0原文

我遇到了一个无法解决我一生的问题。我在Linux上有一个.NET Core应用程序。在构建项目时,我会看到以下警告:

遇到“平台:Microsoft.win32.Registry.dll”和'Runtime之间的冲突: netStandard2.0/microsoft.win32.Registry.dll'。选择'平台:Microsoft.win32.Registry.dll',因为它是平台项目。

的结果是,该组件的Nuget软件包不会在应用程序输出目录中包装,因为它应该应该,由于构建似乎正在使用该组件的系统版本,该组件随附了DotNet安装。

我已经尝试了我能想到的一切。有人遇到了这一问题,还是有解决方法的想法?我认为我已经尝试了我能想到或遇到的一切。

还应注意,我正在ARM64上的Ubuntu 20中这样做,并且是.net的新手

I'm running into a issue that I cant solve for the life of me. I have a .NET Core application on Linux. While building the project I see the following warning:

Encountered conflict between 'Platform:Microsoft.Win32.Registry.dll' and 'Runtime:~/.nuget/packages/microsoft.win32.registry/4.7.0/lib/netstandard2.0/Microsoft.Win32.Registry.dll'. Choosing 'Platform:Microsoft.Win32.Registry.dll' because it is a platform item.

The outcome of this looks to be that the the nuget package for this assembly is not being packaged in the applications output directory as it should, since the build appears to be using a system version of this assembly that came with the dotnet installation.

I've tried just about everything I can think of. Anyone run into this or have ideas of how to resolve? I think I've tried just about everything I can think or have come across online.

Should note also that I'm doing this in Ubuntu 20 on ARM64 and am fairly new to .NET

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文