Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio Windows 10 IOT 14393 SDK Windows.Devices.Gpio错误_Visual Studio_Windows 10 Universal_Windows 10 Iot Core - Fatal编程技术网

Visual studio Windows 10 IOT 14393 SDK Windows.Devices.Gpio错误

Visual studio Windows 10 IOT 14393 SDK Windows.Devices.Gpio错误,visual-studio,windows-10-universal,windows-10-iot-core,Visual Studio,Windows 10 Universal,Windows 10 Iot Core,我对来自Windows 10 14393 SDK(周年更新)的新“Windows IOT Extensions for UWP”引用有问题 我有一个使用Windows.Devices.Gpio命名空间(UWP的Windows IOT扩展)的代码。由于我更新了对14393的引用,Visual Studio将不再创建名称空间Windows.Devices.Gpio 如果我将引用切换到10586,我也会遇到同样的问题。。。有了10240,它就建成了 如果我将这个构建包部署到我的Raspberry Pi

我对来自Windows 10 14393 SDK(周年更新)的新“Windows IOT Extensions for UWP”引用有问题

我有一个使用Windows.Devices.Gpio命名空间(UWP的Windows IOT扩展)的代码。由于我更新了对14393的引用,Visual Studio将不再创建名称空间Windows.Devices.Gpio

如果我将引用切换到10586,我也会遇到同样的问题。。。有了10240,它就建成了

如果我将这个构建包部署到我的Raspberry Pi(14939);软件崩溃时未命中任何断点,出现以下错误:引发异常:mscorlib.ni.dll中的“System.TypeLoadException”。如果删除对Windows.Devices.Gpio命名空间的所有调用;断点回击

环境:

  • 个人电脑:Windows 10系列14393

  • Visual Studio 2015社区更新3英文版(全部为最新版本)

  • Raspberrpi 2B全新安装于14393

=>Visual Studio修复已完成。没有变化

=>在我的计算机上,C:\Program Files(x86)\Windows Kits\10\Extension SDK\WindowsIoT\10.0.14393.0\在任何文件中都不引用Windows.Devices.Gpio

=>SDK安装当前不工作

给我的虫子?每个人都有臭虫


提前谢谢你的帮助

我终于解决了这个问题

“C:\Program Files(x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevel Contract\2.0.0.0”文件夹中没有“Windows.Devices.DevicesLowLevel Contract.winmd”文件。(可能是安装中的错误)

因此,我: -已卸载SDK 14393。 -删除“C:\Program Files(x86)\Windows Kits\10\References\Windows.Devices.Devices LowLevel合同\2.0.0.0”文件夹。 -重新安装SDL 14393()

=>已创建winmd文件

在VisualStudio中,我添加了(在Package.appxmanifest中):

在14393年,不再需要参考物联网扩展


谢谢Hans Passant的帮助

我终于解决了这个问题

“C:\Program Files(x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevel Contract\2.0.0.0”文件夹中没有“Windows.Devices.DevicesLowLevel Contract.winmd”文件。(可能是安装中的错误)

因此,我: -已卸载SDK 14393。 -删除“C:\Program Files(x86)\Windows Kits\10\References\Windows.Devices.Devices LowLevel合同\2.0.0.0”文件夹。 -重新安装SDL 14393()

=>已创建winmd文件

在VisualStudio中,我添加了(在Package.appxmanifest中):

在14393年,不再需要参考物联网扩展


感谢Hans Passant的帮助

GpioController的MSDN文档建议,在版本10.0.14393.0中,它不再是物联网独有的,但现在已在Universal中提供。确保您引用的合同应为Windows.Devices.DevicesLowLevel合同。GpioController的MSDN文档建议,在版本10.0.14393.0中,该合同不再是物联网专有的,但现在已在Universal中提供。确保您引用的是合同,应为Windows.Devices.DevicesLowLevel合同。Yeap,在14393中使用GpioController不需要引用物联网扩展。另外需要注意的是,在引用14393物联网扩展时,您需要确保您的目标版本为14393。Yeap,要在14393中使用GpioController,您不需要引用IoT扩展。另外需要注意的是,在引用14393 IoT扩展时,您需要确保您的目标版本是14393。