none
WinRT and .Net?

    Question

  • I read http://www.infoq.com/news/2011/09/C-Component-Extensions and questions for WinRT

     

    WinRT is big step for windows8. Some questions?
    1. What is the relationship about .Net and WinRT in windows 8? seems .Net on Windows 8 is based on WinRT?
    2. Is there any plan to let WinRT to support None-Metro style app? 
    3. Since it is a new API for windows programming, what about XP, Win 7, any plan to support WIinRT?

    Thursday, September 15, 2011 3:53 AM

Answers

  • WinRT is a set of Windows 8 OS APIs based on classes, objects and members (as compared to the Win32 APIs which were flat C DLL export APIs). As WinRT APIs are OS APIs, they are available to applications running on Windows 8 and later systems.

    .NET applications can call Win32 APIs (via P/Invoke) and WinRT APIs (which appear to a .NET developer similar to a familar .NET Framework API).

    Similarly, C++ applications can call C runtime APIs and WinRT APIs.

    Similarly, JavaScript applications can call JavaScript library functions (e.g. JQuery) and WinRT APIs.

    .NET in Windows 8 is not "based on WinRT" but more that .NET now has the ability to call WinRT OS APIs in a manner natural and familar to the language.

    Some WinRT APIs can be used by Metro style applications and some WinRT APIs can be used by Desktop application. Some of the WinRT APIs can be used from either type of applications. There is nothing instrinsic to WinRT that means a WinRT APIs is solely usable from Metro style applications.

    WinRT is a Windows 8 and later API surface.

    Brent Rector - Windows Runtime Experience team


    Brent Rector VSTO
    Tuesday, September 20, 2011 12:39 AM

All replies

  • http://it-ca.net/blogdylan/wp-content/uploads/2011/09/MetroDevelopment.png

    1. .Net on windows8 isn't really based on WinRT it seems.

    2. no idea

    3. Metro UI apps won't work on windows XP / Vista / 7 because they do not support WinRT

    Regards,

    Dylan Meeus


    0x2B |~ 0x2B Blog : www.it-ca.net/blogdylan
    Thursday, September 15, 2011 3:55 AM
  • WinRT is a bit API set allowing access to many parts of the OS either not previously possible or only possible via complex scripting. .Net has it's own set of WinRT API's available. 

    As far as I understand, Metro apps run in a Metro sandbox where the WinRT API's are made available.

    I bet it won't be backwards compatible. 

    • Proposed as answer by Trissy Thursday, September 15, 2011 3:58 AM
    Thursday, September 15, 2011 3:57 AM
  • WinRT is a set of Windows 8 OS APIs based on classes, objects and members (as compared to the Win32 APIs which were flat C DLL export APIs). As WinRT APIs are OS APIs, they are available to applications running on Windows 8 and later systems.

    .NET applications can call Win32 APIs (via P/Invoke) and WinRT APIs (which appear to a .NET developer similar to a familar .NET Framework API).

    Similarly, C++ applications can call C runtime APIs and WinRT APIs.

    Similarly, JavaScript applications can call JavaScript library functions (e.g. JQuery) and WinRT APIs.

    .NET in Windows 8 is not "based on WinRT" but more that .NET now has the ability to call WinRT OS APIs in a manner natural and familar to the language.

    Some WinRT APIs can be used by Metro style applications and some WinRT APIs can be used by Desktop application. Some of the WinRT APIs can be used from either type of applications. There is nothing instrinsic to WinRT that means a WinRT APIs is solely usable from Metro style applications.

    WinRT is a Windows 8 and later API surface.

    Brent Rector - Windows Runtime Experience team


    Brent Rector VSTO
    Tuesday, September 20, 2011 12:39 AM