Paul Sinnema
Paul Sinnema

Reputation: 2792

How to find the references of documented classes

I always struggle with finding references for documented classes. Take the HardwareIdentification class for example. Ik can find the documentation just fine here. In the documentation it says the class is in the System.Windows.Profile library. When however I open the 'Add reference' box this library is not found in either 'Assemblies.Framwork' or 'Assemblies.Extensions'. My search on Google results in find nothing. The NuGet package manager doesn't find this assembly either. So where is it? It's not in the GAC too.

Upvotes: 0

Views: 72

Answers (1)

jessehouwing
jessehouwing

Reputation: 115037

The docs page mentions the Device Families and luckily provides the Windows SDK version that goes with that:

  • Windows Desktop Extension SDK (introduced v10.0.10240.0)
  • Windows Mobile Extension SDK (introduced v10.0.10240.0)
  • Windows 10 Anniversary Edition (introduced v10.0.14393.0)

It also mentions that these Assemblies are for the WindowsRT / UWP development, it's likely these won't work elsewhere.

You can download the latest Windows SDK here:

The default installation location is:

  • C:\Program Files (x86)\Microsoft SDKs
  • C:\Program Files\Microsoft SDKs

If you're using Visual Studio 2017, you may need to enable the correct workloads for the SDK elements to be installed, my workload, for example, doesn't contain UWP.

Upvotes: 1

Related Questions