raV720
raV720

Reputation: 594

What is the Microsoft.NETCore.UniversalWindowsPlatform reference used for?

Sorry for laic question, but I do not understand what the Microsoft.NETCore.UniversalWindowsPlatform reference is for in a UWP application. This reference is added automatically. As I understand UWP is based on its own, separate api - the reference is Universal Platform. So the reference Microsoft.NETCore.UniversalWindowsPlatform should not be required. So my questions are thus:

  1. What is Microsoft.NETCore.UniversalWindowsPlatform reference for?
  2. Is this reference required to run a UWP application? If I remove the reference then application does not compile complaining about missing basic Object classes for example.

Upvotes: 4

Views: 2224

Answers (1)

Matt Lacey
Matt Lacey

Reputation: 65566

This reference can be considered an alias for all the packages and references needed in a Universal Windows app.

Having a single entry keeps the list smaller and more manageable and avoids issues with references to incompatible versions of related files.

You need this entry. It is used to get all the files related to the version of UWP that you are targeting.

Upvotes: 2

Related Questions