.Net Micro Framework SDK 2.5 发布

简介: 安装后,我初步看了一下,好像大的改动不多,以前我编写的MF程序都可以正常运行

3月6日,微软.Net Micro Framework SDK 2.5 在MSDN上提供了下载链接(http://www.microsoft.com/downloads/details.aspx?familyid=EB0EF2A6-03E2-402C-89A4-A636BD0080C5&displaylang=en)。

安装最新版本的SDK之前,需要卸载掉原来的老版本。

image.png

安装后,我初步看了一下,好像大的改动不多,以前我编写的MF程序都可以正常运行,至于新功能嘛,其发布文件上如是说:

===============================================================================

What new in V2.5?

The V2.5 release includes a optionally installed beta release of the assemblies
for the .NET managed Devices Profile for Web Services (DPWS) stack.
 
Samples demonstrating how to create or use: 
 - hosted services on devices
 - clients on the desktop and on devices
 - Discovery and Eventing

The .NET Micro Framework DPWS stack requires TCP/IP (Sockets) to function.
 
Device firmware must be developed with the V2.5 version
of the .NET Micro Framework Porting Kit in order to include
the .NET Micro Framework TCP/IP network stack.

===============================================================================

Issues


Issue:

Calling SocketConnect on a second set of sockets causes an exception in the
Emulator.

Resolution:
This is a known issue and will be fixed in a subsequent release.


Issue:

If a DispatchTimer is declared on the stack of a method, and the method
returns, the DispatchTimer object may be garbage collected, even though
still enabled.

Resolution:
Declare DispatchTimer objects as globals.


Issue:

The EnableDynamicDNS method of the
Microsoft.SPOT.Net.NetworkInformation.NetworkInterface class is not
implemented in the .NET Micro Framework TCP/IP stack, and will cause
an exception if called from a managed application.

Resolution:
Dynamic DNS address assignment is accomplished by enabling DHCP after
setting the static DNS address to 0.0.0.0.
 
For example, the following code will cause DHCP to assign the DNS addresses:

        // set DNS to 0 so DHCP DNS is used
        string[] dns = new string[] { "0.0.0.0", "0.0.0.0" };
        interfaces[0].EnableStaticDns(dns);
        // Enable DHCP
        interfaces[0].EnableDhcp();

When changing the network configuration in a managed application, it is
necessary to follow these guidelines:
   1) When changing the network configuration from DHCP-enabled to static,
      it is necessary to update the static DNS addresses
   2) When changing the network configuration from static to DHCP-enabled,
      it is necessary to change the two DNS addresses to 0.0.0.0 so that DHCP
      will update the DNS addresses. If you want to then replace the
      DNS addresses provided by DHCP, call EnableStaticDns with the two
      replacement addresses.

 

Issue:

DHCP behavior on the .NET Micro Framework differs from DHCP on the desktop.
The .NET Micro Framework makes three attempts within 7 seconds to obtain
a DHCP lease at bootup. If the DHCP server is not found within this time frame,
the framework ceases searching for a DHCP server. This is the intended behavior
that application developers should be aware of since it differs from all
versions of the Windows operating system.

Because of the finite number of attempts to find the DHCP server, your device
may not obtain a DHCP lease if it is not properly connected to the network at
boot time.
 
Resolution:
Connect the device to the network before booting.


Issue:

Deploying multiple times to the iMXS platform in Visual Studio can cause
deployment errors.

Resolution
A solution to this problem is being investigated for version 3.0. Currently,
there are multiple workarounds available. Here are a few.
1.  Press F5.
2.  Restart the device.
3.  Check to see if you have multiple devices with the same name.
4.  Restart Visual Studio.


Issue:

There is a known issue when debugging a .NET Micro Framework V2.0 SP1
application running on the V2.5 firmware. This typically happens when loading
a resource.  This issue will be resolved in a subsequent release.

Resolution
Use the V2.5 SDK for all application development.


Issue:

Dns.GetHostEntry with an empty input string ("") will return the local
IP address

Resolution:
This is by design and expected behavior.


Issue:

After deploying an application from Visual Studio, the device is rebooted. In
some cases, DHCP can cause Visual Studio to time out while waiting for a
reconnect, preventing Visual Studio from debugging the device.

Resolution:
Add a registry key and value to increase the amount of time Visual Studio will
wait for a reconnect. The default of 5 seconds may be extended by creating the
following key and setting its timeout, retries, and override values:

HKCurrentUser/
  Software/
    Microsoft/
      .NetMicroFramework/
        NonVersionSpecific/
          Timing/
            AnyDevice

'timeout' (DWORD): milliseconds to wait before retrying
    (constrained to 50 < timeout < 60000)
'retries' (DWORD): count of retries to attempt
    (constrained to 1 < retries < 1000)
'override' (DWORD): if present and non-zero, ignore constraints above,
    and attempt to apply any valid DWORD values.

If any one of the values provided is out of bounds or malformed, it is
silently ignored and the default values remain in effect. However, the others
that are valid are still be applied.

The default values are as in v2 SP1: timeout = 100 for platforms that support
a soft reboot, 1000 otherwise; retries = 10.


Issue:

Calling a NetworkInterface method that changes the IP address will invalidate
any bound sockets.

Resolution:
If running as a server, re-bind any open sockets after any IP address change.

进一步的详情,等我研究后在说。

相关文章
|
4月前
使用的是.NET Framework 4.0,并且需要使用SMTP协议发送电子邮件
使用的是.NET Framework 4.0,并且需要使用SMTP协议发送电子邮件
74 1
|
4月前
|
开发框架 缓存 监控
NET Framework 到 .NET 5/6 的迁移是重大的升级
本文详细介绍了从 .NET Framework 4.8 迁移到 .NET 5/6 的过程,通过具体案例分析了迁移策略与最佳实践,包括技术栈评估、代码迁移、依赖项更新及数据库访问层的调整,强调了分阶段迁移、保持代码可维护性及性能监控的重要性。
80 3
|
4月前
|
机器学习/深度学习 编解码 算法
【小样本图像分割-4】nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentation
《nnU-Net: 自适应框架用于基于U-Net的医学图像分割》是一篇2018年的论文,发表在Nature上。该研究提出了一种自适应的医学图像分割框架nnU-Net,能够自动调整模型的超参数以适应不同的数据集。通过2D和3D U-Net及级联U-Net的组合,nnU-Net在10个医学分割数据集上取得了卓越的性能,无需手动调整。该方法强调数据增强、预处理和训练策略等技巧,为医学图像分割提供了一个强大的解决方案。
151 0
【小样本图像分割-4】nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentation
winform .net6 和 framework 的图表控件,为啥项目中不存在chart控件,该如何解决?
本文讨论了在基于.NET 6和.NET Framework的WinForms项目中添加图表控件的不同方法。由于.NET 6的WinForms项目默认不包含Chart控件,可以通过NuGet包管理器安装如ScottPlot等图表插件。而对于基于.NET Framework的WinForms项目,Chart控件是默认存在的,也可以通过NuGet安装额外的图表插件,例如LiveCharts。文中提供了通过NuGet添加图表控件的步骤和截图说明。
winform .net6 和 framework 的图表控件,为啥项目中不存在chart控件,该如何解决?
|
6月前
|
开发框架 缓存 前端开发
实战.NET Framework 迁移到 .NET 5/6
从.NET Framework 迁移到.NET 5/6 是一次重要的技术革新,涵盖开发环境与应用架构的全面升级。本文通过具体案例详细解析迁移流程,包括评估现有应用、利用.NET Portability Analyzer 工具识别可移植代码、创建新项目、逐步迁移代码及处理依赖项更新等关键步骤。特别关注命名空间调整、JSON 序列化工具更换及数据库访问层重构等内容,旨在帮助开发者掌握最佳实践,确保迁移过程平稳高效,同时提升应用性能与可维护性。
207 2
|
6月前
|
开发框架 JSON 监控
实战指南:从 .NET Framework 迁移到 .NET 5/6 的策略与最佳实践
【8月更文挑战第28天】从 .NET Framework 迁移到 .NET 5/6 是一次重要的技术升级,涉及开发环境与应用架构的改进。本文通过具体案例分析,介绍迁移策略与最佳实践,帮助开发者顺利完成转变。
124 1
|
6月前
|
存储 API 开发工具
【Azure Storage Blob】如何通过.NET Azure Storage Blobs SDK获取到Blob的MD5值呢?
【Azure Storage Blob】如何通过.NET Azure Storage Blobs SDK获取到Blob的MD5值呢?
|
6月前
|
缓存 程序员
封装一个给 .NET Framework 用的内存缓存帮助类
封装一个给 .NET Framework 用的内存缓存帮助类
|
6月前
|
XML JSON 程序员
总结一下 .NET FrameWork 和 .NET Core 创建的项目的不同点
总结一下 .NET FrameWork 和 .NET Core 创建的项目的不同点
152 0
|
6月前
|
消息中间件 开发框架 .NET
闲话 .NET(7):.NET Core 能淘汰 .NET FrameWork 吗?
闲话 .NET(7):.NET Core 能淘汰 .NET FrameWork 吗?

热门文章

最新文章

  • 1
    【11】flutter进行了聊天页面的开发-增加了即时通讯聊天的整体页面和组件-切换-朋友-陌生人-vip开通详细页面-即时通讯sdk准备-直播sdk准备-即时通讯有无UI集成的区别介绍-开发完整的社交APP-前端客户端开发+数据联调|以优雅草商业项目为例做开发-flutter开发-全流程-商业应用级实战开发-优雅草Alex
  • 2
    【08】flutter完成屏幕适配-重建Android,增加GetX路由,屏幕适配,基础导航栏-多版本SDK以及gradle造成的关于fvm的使用(flutter version manage)-卓伊凡换人优雅草Alex-开发完整的社交APP-前端客户端开发+数据联调|以优雅草商业项目为例做开发-flutter开发-全流程-商业应用级实战开发-优雅草Alex
  • 3
    【02】鸿蒙实战应用开发-华为鸿蒙纯血操作系统Harmony OS NEXT-项目开发实战-准备工具安装-编译器DevEco Studio安装-arkts编程语言认识-编译器devco-鸿蒙SDK安装-模拟器环境调试-hyper虚拟化开启-全过程实战项目分享-从零开发到上线-优雅草卓伊凡
  • 4
    .NET 平台 SM2 国密算法 License 证书生成深度解析
  • 5
    YOLOv11改进策略【Backbone/主干网络】| 2023 U-Net V2 替换骨干网络,加强细节特征的提取和融合
  • 6
    CompreFace:Star6.1k,Github上火爆的轻量化且强大的人脸识别库,api,sdk都支持
  • 7
    【Azure Developer】编写Python SDK代码实现从China Azure中VM Disk中创建磁盘快照Snapshot
  • 8
    yum install -y net-snmp-devel 安装不成功 zabbix项目安装,Errors during downloading metadata for repository ‘extras-common’:问题解决方案-优雅草卓伊凡
  • 9
    YOLOv11改进策略【Neck】| ArXiv 2023,基于U - Net v2中的的高效特征融合模块:SDI(Semantics and Detail Infusion)
  • 10
    RT-DETR改进策略【Neck】| ArXiv 2023,基于U - Net v2中的的高效特征融合模块:SDI(Semantics and Detail Infusion)