Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 6 > BOOK: Professional C# 6 and .NET Core 1.0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 7th, 2017, 12:34 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old June 7th, 2017, 02:27 PM
Wrox Author
Points: 1,136, Level: 13
Points: 1,136, Level: 13 Points: 1,136, Level: 13 Points: 1,136, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
Posts: 170
Thanks: 2
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
Reply With Quote
  #3 (permalink)  
Old June 7th, 2017, 02:42 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #4 (permalink)  
Old June 7th, 2017, 04:56 PM
Wrox Author
Points: 1,136, Level: 13
Points: 1,136, Level: 13 Points: 1,136, Level: 13 Points: 1,136, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
Posts: 170
Thanks: 2
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
Reply With Quote
The Following User Says Thank You to ChristianNagel For This Useful Post:
MarcioAB (June 7th, 2017)
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:12 AM
Chapter 20, p.987 Runtime Error Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 0 January 17th, 2008 03:05 AM
HELP - Access 2000 Runtime w Windows XP Compiled.. chasidim Access 2 April 3rd, 2006 11:06 AM



All times are GMT -4. The time now is 07:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.