我有一个以前在Windows 8.1上使用VS 2013构建的WinJS项目.
最近我通过创建一个空白的Javascript Universal windows 10项目将该项目升级到Universal Windows 10,然后从旧项目添加了我的所有文件.
我有Windows运行时组件以及SQLite的类库.
我添加了通用Windows运行时组件和通用类库,并将我的所有文件从旧项目复制到各自的位置.
不知何故,我设法删除所有构建错误.
我安装了所有必需的SQLite-net,SQLite for Universal Windows Platform,Newtonsoft等.
但是当我运行应用程序并在Windows运行时组件中调用Native方法时,它会产生一些奇怪的错误:
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll but was not handled in user code.
Additional information: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Newtonsoft版本是:9.0.1
我的Windows运行时组件的project.json文件如下:
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"Newtonsoft.Json": "9.0.1"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {}, …Run Code Online (Sandbox Code Playgroud) c# visual-studio win-universal-app windows-10 windows-10-universal