.Net Micro Framework SDK 2.5 发布

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

 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之前,需要卸载掉原来的老版本。

安装后,我初步看了一下,好像大的改动不多,以前我编写的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.

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

相关文章
|
2月前
|
消息中间件 物联网 网络安全
MQTT常见问题之调用.net sdk 报“不知道这样的主机”如何解决
MQTT(Message Queuing Telemetry Transport)是一个轻量级的、基于发布/订阅模式的消息协议,广泛用于物联网(IoT)中设备间的通信。以下是MQTT使用过程中可能遇到的一些常见问题及其答案的汇总:
|
4月前
|
Linux C# 开发工具
C#开源的一款友好的.NET SDK管理器
C#开源的一款友好的.NET SDK管理器
|
1天前
|
数据挖掘 定位技术
.NET Compact Framework下的GPS NMEA data数据分析(二)转
.NET Compact Framework下的GPS NMEA data数据分析(二)转
|
3天前
|
SQL Windows
保姆级:Windows Server 2012上安装.NET Framework 3.5
保姆级:Windows Server 2012上安装.NET Framework 3.5
|
14天前
|
开发框架 .NET C#
探索VB.NET:了解.NET Framework下的Visual Basic
【4月更文挑战第27天】Visual Basic进化为VB.NET,融入.NET Framework,提供面向对象编程、泛型、LINQ等特性。VB.NET是强类型语言,支持类型推断,通过Windows Forms和WPF构建桌面应用。广泛应用于企业级、Web和数据处理开发,是易学且功能强大的编程工具。随着.NET版本更新,VB.NET的应用仍具价值,适合初学者和资深开发者。
|
25天前
|
存储 移动开发 前端开发
对象存储oss使用问题之OSS SDK .net 使用下载例程报错如何解决
《对象存储OSS操作报错合集》精选了用户在使用阿里云对象存储服务(OSS)过程中出现的各种常见及疑难报错情况,包括但不限于权限问题、上传下载异常、Bucket配置错误、网络连接问题、跨域资源共享(CORS)设定错误、数据一致性问题以及API调用失败等场景。为用户降低故障排查时间,确保OSS服务的稳定运行与高效利用。
29 0
|
2月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
226 0
|
20天前
|
JavaScript Java Maven
云效产品使用常见问题之android sdk 构建出aar后,上传到私有maven仓库失败如何解决
云效作为一款全面覆盖研发全生命周期管理的云端效能平台,致力于帮助企业实现高效协同、敏捷研发和持续交付。本合集收集整理了用户在使用云效过程中遇到的常见问题,问题涉及项目创建与管理、需求规划与迭代、代码托管与版本控制、自动化测试、持续集成与发布等方面。
|
4月前
|
安全 开发工具 Android开发
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
几个Flutter常见诊断错误与解决Android toolchain - develop for Android devices X Unable to locate Android SDK
418 0
|
7月前
|
API 开发工具 Android开发
解决 Android App 上架 Google play后 ,签名变更,第三方sdk无法登录
解决 Android App 上架 Google play后 ,签名变更,第三方sdk无法登录
152 0