Nayrb
Nayrb

Reputation: 1043

Point assembly reference in .Net 4.0, cannot seem to find it

I'm unable to find the correct assembly reference in .Net 4.0 for the Point Structure.

The API reference is here.

But System.Windows does not exist in my Reference list from the Solution Explorer.

I understand I could have made a simple Point Structure myself but I wanted to use this in case I run into this problem with other assemblies. =)

Upvotes: 2

Views: 4846

Answers (2)

Tomas Voracek
Tomas Voracek

Reputation: 5914

You must add WindowsBase assembly (Assembly: WindowsBase (in WindowsBase.dll)).Read MSDN carefully.

Namespace name is not always DLL name.

Upvotes: 2

CodesInChaos
CodesInChaos

Reputation: 108790

Namespace: System.Windows
Assembly: WindowsBase (in WindowsBase.dll)

So you need to reference the WindowsBase.dll assembly. System.Windows is only the namespace.

Upvotes: 5

Related Questions