Search code examples
c#windows-phone-8datasnap

Windows Phone - Does not exist in the namespace 'System.Windows'


I'm developing an app for windows phone, based on DataSnap (Delphi).

However, the error is displayed for reference System.Windows.Threading; :

The type or namespace name 'Threading' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

I add WindowsBase.dll, but not resolved.


Solution

  • Not all libraries that are usually available in a .Net environment are available in WP environment.

    Use aync and await for implementing threading. Check this intro to async and await : Asynchronous Programming For Windows Phone 8