Question

For my project I need the types vector and polygon. I have found on MSDN that I had to include WindowsBase in my project (See below), but that doesn't work.

using System.Windows
using System.Windows.Windowsbase

Where can I find the right assembly to include?

Can I not add them as it is a windows phone project?

I have read on the internet that several other people had this problem too.

The complete error is Error 1 The type or namespace name 'Vector' could not be found (are you missing a using directive or an assembly reference?)

Was it helpful?

Solution

You can't include desktop WPF references in an application compiled for Windows Phone 7 (see supported platforms on MSDN).

You'd better rewrite that code (or "grab" it with a decompiler keeping namespaces unchanged, in case someday it'll be shipped in a Portable Library).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top