Microsoft.Phone.Tasks namespace is not available - windows-phone

Namespace Microsoft.Phone.Tasks is not available in XAML page code behind file of my Windows Phone application. Please see the screenshot.
In the properties windows of the project I see:
Target: Windows Phone 8.1
Am I missing an assembly reference or something?

Windows Phone 8.1 XAML apps don't have Microsoft.Phone.Tasks namespace to make common UI framework with windows Runtime APIs. Still you can code up a few tasks by using Windows.ApplicationModel namespace. As you havent claried which task you want to use, so here's the link to the whole MSDN article. http://code.msdn.microsoft.com/windowsapps/WindowsPhone-Store-81-vs-25c80c2a

From your Screenshot. I see your project is Windows Phone 8.1, not Windows Phone Silverlight 8.1 . Please see your Solution Explorer, is it Windows Phone 8.1? If so, there are not Microsoft.Phone.Tasks namespace anymore. If you want to choose picture, you should use FileOpenPicker.

Related

Tesseract OCR implementation in Windows phone 8.1 application

Q. Not able to add Tesseract-OCR to References in windows phone application.
I have added "Install-Package Tesseract" from nuget manager. I am not able to refer it my application.
Can anyone please guide me through.
Thanks in advance.

Adding version info to a Windows Phone 8.1 C++/CLI Class Library

I have created a universal C++/CX windows runtime component library. Universal library projects in VS2013 build to a Windows 8.1 dll and a Windows Phone 8.1 dll.
For the Windows 8.1 dll I can add a "resource.rc" file, and then add VERSIONINFO to that.
But for the Windows Phone 8.1 dll I cannot add a "resource.rc" file because that requires winres.h, which is not present. I tried removing all of the references to winres.h from the Resource.rc code, but the resulting dll does not contain the version information.
How do I version a C++/CX WP 8.1 wrc library?
This worked for me. Add .rc file as usually. Then go to project "Configuration Properties > Resources > General".
To "Additional Include directories" add $(WindowsSDK80Path)\Include\um.
Basically, it should point to path like "C:\Program Files (x86)\Windows Kits\8.1\Include\um".

LayoutTransform not in Windows Phone Toolkit

The examples I have found for using a LayoutTransformer with windows phone are all from before they split off the Windows Phone Toolkit from the Silverlight Toolkit.
The Windows Phone Toolkit does not have the LayoutTransformer.dll that was referenced.
So the question is, what do you use to do a LayoutTransform now?
Literally, just use the code from the Silverlight toolkit with minor changes.
Here's how to do it for Windows 8 (note: this is from my blog). You can reuse this completely, just change a few namespaces and at one place from 'protected' to 'public' and it builds and works.
Edit: I published a WP8 version on GitHub. Enjoy :)

how to build xaml ui in Cocos2d for windows 8 metro application?

we have been use cocos2d for windows 8 build metro game . so we want use xaml control UI in cocos2d ?
is there have soluction or suggestion?
just try one night i have been fix this problem. you can click fllow link:
DirectX and XAML interop (Windows Store apps using C++ and DirectX) (Windows) http://msdn.microsoft.com/en-us/library/windows/apps/hh825871.aspx
With the release of Windows 8, you can use XAML and Direct X together in your Windows Store app. The combination of XAML and DirectX lets you build flexible user interface frameworks that interop with your DirectX-rendered content, and is particularly useful for graphics-intensive apps. We explain the structure of a XAML app that uses DirectX, and identify the important types to use when building your XAML app to work with DirectX.
soluction as fllow link:
http://www.cnblogs.com/chenkai/archive/2012/11/29/2794983.html
by chenkai
Here's a template project in my github:
https://github.com/chanyuenpang/cocos2dxaml

C++ cli assembly attributes missing

Hi I created as sample C++ CLI project in VS.
By default it has many assembly attributes like company, product etc.
On Windows7 or Vista, when I right click on the assembly and go to the Details tab, the assembly is missing some of the attributes that I added.
Any Idea why it is so?
Which attributes are missing? The Windows Explorer properties dialog only supports a subset of the .NET assembly version attributes.
Windows 7 file system is different from Windows XP (I don't know about Vista). In particular, under Windows XP, you could append Summary information to any file (Title/Subject/Author/Category/Keywords/Comments), but not under Windows 7. If you copy such a file to Windows 7, this information is just thrown away. Many users have complained about this.