无法找到锁定文件所需的信息。请确保您有.NETCore,版本V5.0 = /在你的目标提到win10-值为anycpu [英] Couldn't find the required information in the lock file. Make sure you have .NETCore,Version=v5.0/win10-anycpu mentioned in your targets

查看:890
本文介绍了无法找到锁定文件所需的信息。请确保您有.NETCore,版本V5.0 = /在你的目标提到win10-值为anycpu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在Windows 10通用的应用程序。这样做的目的是为了有一个JS前端连接到C#库繁重。虽然当我添加引用和Trey编译我收到以下错误

I'm working on a Windows 10 universal app. The aim was to have a JS front end connecting to a C# library for the heavy lifting. Though when I add the reference and trey to compile I get the following error

中找不到锁定文件所需的信息。确保你
具有.NETCore,版本V5.0 = /在你的目标提到win10-值为anycpu。

Couldn't find the required information in the lock file. Make sure you have .NETCore,Version=v5.0/win10-anycpu mentioned in your targets.

我已经环顾四周,在少数情况下,解决方案是更新Visual Studio和我已经做了的NuGet包。

I've looked around and in a few cases the solution has been to update Visual Studio and the NuGet packages which I have done.

任何建议将是巨大的,
谢谢

Any suggestions would be great, Thanks

推荐答案

只需更改构建配置为x86或ARM,它应该工作。

Just change build configuration to x86 or ARM and it should work.

任何CPU不被UWP项目的支持,因为他们使用的是.NET本机内置。你可以阅读更多关于它的这里

Any CPU is not supported by UWP projects, because they are built using .NET Native. You can read more about it here.

这篇关于无法找到锁定文件所需的信息。请确保您有.NETCore,版本V5.0 = /在你的目标提到win10-值为anycpu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆