37
votes

As I know that the .net-core can run UWP, can we build or write UWP with Core? I've read the https://msdn.microsoft.com/en-us/magazine/mt694084.aspx

1
It seems you will be able to run UWP on .net core 3.0 - ghord
@ghord that is a slight technicality. You can run UWP on .NET Core today. If I understand this correctly, UWP is .NET Standard 2.0 compliant, which uses reference assemblies during design and development. When it actually builds and runs, it uses its runtime assemblies now, and pulls these assemblies from .NET Core, not .NET Framework. UWP does NOT run on the .NET Core App runtime like a .NET Console does, if that makes sense. I doubt it does. It's very confusing. ;) - Mike-E
@Mike-EEE From what I understand, In build 2018 they announced Desktop Packs, which will allow you to run WPF/WinForms/UWP on .Net Core 3.0 - ghord
Right @ghord there is .NET Core support. The distinction here is that these packs enable those products to run on .NET Core 3.0 runtime assemblies, not the .NET Core 3.0 application runtime. That is, you will not be able to run WPF/WinForms/UWP on Linux or Mac which is made possible by the application runtime that I am referring to here. You will, however, get all the performance benefits and extra APIs/tooling from .NET Core 3.0 on Windows, however. This is, again, if I understood everything correctly. - Mike-E
@ghord In blog post I linked Scott Hanselman clearly says "You can run WinForms and WPF on .NET Core 3 on Windows". For me the reason it wont run on Mac/linux is that there are simply no apis to PInvoke there (which winforms and WPF both need to work). - ghord

1 Answers

31
votes

UWP apps will be able to use libraries you have created in .net core as long as you target the .netstandard1.6 (or higher) framework moniker.

UWP is only for the windows ecosystem.

See this article.

enter image description here