Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 6 > BOOK: Professional C# 6 and .NET Core 1.0
|
BOOK: Professional C# 6 and .NET Core 1.0
This is the forum to discuss the Wrox book Professional C# 6 and .NET Core 1.0 by Christian Nagel; ISBN: 978-1-119-09660-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 6 and .NET Core 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2017, 12:34 PM
Registered User
 
Join Date: Jun 2017
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 1: Native runtime x Windows runtime

I see on many Microsoft docs the term ".Net Native RUNTIME".
On the other hand, in this book I do not see this term, but instead I see "Windows RUNTIME", what I'm using as a similar term. But, just to double-check:

Is ".Net Native RUNTIME" the same as "Windows RUNTIME" ?

Thank you
Marcio
 
Old June 7th, 2017, 02:27 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Hi Marcio,

it's not the same. Creating UWP apps you use the Windows Runtime and .NET Core. The Windows Runtime can be used from native C++, JavaScript, and .NET callers (e.g. using C#). The types look like .NET types, but we just have the same metadata for the description. Open the Object Browser in Visual Studio and select the category "Windows". This shows the Windows.* namespaces that belong to the Windows Runtime.
Also, check this Wikipedia article: https://en.wikipedia.org/wiki/Windows_Runtime

The Windows Runtime is already native. Creating UWP applications with .NET, the .NET code is also compiled to native code (when you publish the app to the store, and you can also select native code generation with the Visual Studio project settings). Here, you are using native runtime components - I think you've read about this in some articles. Can you supply links to these articles?

Hope this helps.

Cheers,
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel
 
Old June 7th, 2017, 02:42 PM
Registered User
 
Join Date: Jun 2017
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi and thank you Christian,

This is the link:
https://blogs.windows.com/buildingap...1ltwjX3XpKF.97

From this article I understood when you build (a UWP app) in DEBUG mode you use the .Net CoreCLRuntime and when you build in RELEASE mode you use .Net Native Runtime ( and not use the .Net CoreCLRuntime anymore ).

Any idea, why this people from "Windows App Team" does not use the term Windows Runtime ?

Thank you
Marcio

Last edited by MarcioAB; June 7th, 2017 at 03:09 PM..
 
Old June 7th, 2017, 04:56 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Hi Marcio,

thanks for the link. This is about .NET Native which I also mentioned when publishing the app to the store and the configuration in the project settings.

This article https://blogs.windows.com/buildingap...1ltwjX3XpKF.97 doesn't mention the Windows Runtime because this article is only about the .NET Native part of Windows apps.

You'll also find many Microsoft articles with the Windows Runtime, e.g. https://docs.microsoft.com/en-us/win...rt-components/. Using .NET to create Windows apps, you need both .NET and the Windows Runtime.

Cheers,
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel
The Following User Says Thank You to ChristianNagel For This Useful Post:
MarcioAB (June 7th, 2017)





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 4 error on runtime chinmay Beginning PHP 1 April 30th, 2013 05:15 AM
Chapter 8 Where Am I 5 - runtime bug ! makeit_quick BOOK: Professional Android 2 Application Development 0 December 26th, 2010 10:12 AM
Chapter 20, p.987 Runtime Error Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 0 January 17th, 2008 04:05 AM
HELP - Access 2000 Runtime w Windows XP Compiled.. chasidim Access 2 April 3rd, 2006 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.