Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

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

like image 841
Coopstercoop Avatar asked Dec 28 '25 18:12

Coopstercoop


1 Answers

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

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

like image 117
Roman Novitsky Avatar answered Dec 30 '25 08:12

Roman Novitsky