开发者

WinRT and .Net Framework

开发者 https://www.devze.com 2023-04-04 21:40 出处:网络
After the WinRT presentation, I\'m confused about the role of the .net framework in the Microsoft dev开发者_StackOverflowelopment stack.

After the WinRT presentation, I'm confused about the role of the .net framework in the Microsoft dev开发者_StackOverflowelopment stack.

Is it necessary for developing WinRT applications?


As I understand it you can build a WinRT app in 3 ways

  • .net
  • jscript
  • unmanged C++

The WinRT "object" are ref counted like COM was, however they have good meta data so .net can make them look like .net objects. (likewise jscript can make them look like jscipt objects)

So .net is not necessary to develop WinRT applications if you wish to use jscript or C++.


If you are developing a Windows 8 Metro style application, then you will be using WinRT whether you choose to use HTML5/JS, Xaml or C++. Note that C#/VB.NET and Xaml in Metro apps only expose a subset of the .NET Framework. WinRT provides a sort of sandboxed environment for the apps.

If you are developing "classic" Desktop Applications, then you'll likely use the .NET Framework and its full awesomeness.

They really are two different platforms for building two different kind of apps. WinRT for fully imersive apps that can utilize touch and other sensors. And .NET for any other application you want to build. Remember that you can still utilize touch (and most likely the other sensor API's as well) within any .NET application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号