![](/img/trans.png)
[英]Nuget DLL Hell: Could not load file or assembly System.Runtime
[英]Could not load file or assembly 'System.Runtime' with .Net Core dll
我使用.Net Core构建了一个简单的dll,并且希望在Windows Universal Application中使用它。 但是当我这样做时:
Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference
我为我的dll在不同版本的.Net Core之间切换,但问题仍然相同。
也许我的问题很愚蠢,或者很简单,但是我找不到解决方案。
谢谢
不要使用.Net Core创建库,而是将其定位为.net standard 2.0 。
现在创建一个将MinVersion设置为Build 16299的UWP应用,并将引用添加到.net标准2.0 dll。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.