该示例编译得很好,但在部署过程中出现错误:
2020-03-03 08:03:14Z [Found assemblies mismatches when checking for deployment pre-check.]
2020-03-03 08:03:14Z [Exception occurred during deployment.
Deploy failed.
*************************************** Couldn't find a valid native assembly required by System.Net.Http v1.2.2.0, checksum 0xAD7C8F88.
This project is referencing System.Net.Http NuGet package requiring
native v. The connected target does not have support for
System.Net.Http. Please check: 1) if the target is running the most
updated image. 2) if the target image was built to include support
for all referenced assemblies.
我正在使用运行时版本 1.4.0-preview.120 我的假设是安装的运行时不包含所需的程序集,我尝试编译自己的程序集,但最终我得到了同样的错误。
我引用了以下 NuGet 包:
nanoFramework.CoreLibrary {1.7.0-alpha.3}
AzureMQTT
nanoFramework.M2Mqtt {4.4.0-preview.11}
AzureMQTT
nanoFramework.Networking.Sntp {1.4.0-preview.7}
AzureMQTT
nanoFramework.ResourceManager {1.0.0-preview.5}
AzureMQTT
nanoFramework.Runtime.Events {1.4.1-preview.5}
AzureMQTT
nanoFramework.Runtime.Native {1.2.0-preview.8}
AzureMQTT
nanoFramework.System.Collections {1.0.0-preview.7}
AzureMQTT
nanoFramework.System.Net {1.4.1-preview.3}
AzureMQTT
nanoFramework.System.Net.Http {1.2.2-preview.3}
AzureMQTT
nanoFramework.System.Text {1.0.0-preview.1}
AzureMQTT
我的问题是:AzureMQTT 示例需要哪些程序集?或者如果我的假设是错误的,问题出在哪里?