Targeting WP7 async powered projects in Visual Studio 2012 - windows-phone-7

Is it possible to use async stuff in Windows Phone 8.0 SDK (Visual Studio 2012) and still targeting Windows Phone 7.1?
I installed Windows Phone 8.0 SDK and opened my WP7.1 project with references to AsyncCTP nuget package. The following compilation error occurs:
Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
I do not want to drop support of WP7.1, so upgrade to WP8 is not an option.

It is possible using the latest version of the async CTP. You can find it on NuGet at Microsoft.Bcl.Async.
More information on the BCL Team blog: http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx
Note: The installation of this NuGet package seems a bit random. I had to try twice to make it work.

Related

VersionOne SDK not working with VS2019 and Xamarin

I want to create a mobile app for connecting to Collabnet VersionOne (REST API). VersionOne has an SDK, but it's only .Net Framework 4.5.1 (Nuget: VersionOne.SDK.APIClient) and Visual Studio 2013 that is supported.
I'm trying to install the NuGet package in Visual Studio 2019, but it fails, e.g, on only supporting .Net v451 - is this never doing to work? Or should I put some effort into it, to try it out?
Anyone working with VersionOne SDK and mobile apps?
You could temporarily make it work by
Opening your Core project settings
Go to general, select .NET Portable and change the settings so it targets the framework supported by that library, by changing the PCL profile
You can also help them to migrate to the latest .NetStandard

Can't create project on Visual Studio for Windows Phone

I want to start developing App for Windows Phone.
I have installed Visual Studio 2010 Express, Updating it to SP1. Install Windows Phone SDK 7.1. And when I want to create a new Project, here comes the error.
I have installed .NET Framework 3.5 to 4.5. Silverlight SDK 4.0. What am I missing here ?
I am using Windows 8 32 bit if it has any difference.
Microsoft made developing for windows-phone as complicated as possible. )
So, basically there are two solutions, that are guaranteed to work:
1) You can develop on Visual Studio 2010 for windows-phone-7 on Windows 7.
2)You can develop on Visual Studio 2012 for windows-phone-8 on Windows 8(64-bit).
The other variations are more like a 'dance with tambourine', in my humble opinion.
There are solutions, but they are all tricky.
What may work for you:
Check this question, maybe it helps.
The first answer has a link with instruction of how-to install a sdk for wp7 on windows 8. Try it. However, there's no mention about 32-it system, so it might also not work.
Right now, you've said, you've installed SDK 7.0. Try to to, as suggested in above-mentioned link and install Windows Phone SDK 7.1 and 7.1.1 update.

How to Target WP7.1 in Visual Studio 2013

I have just upgraded to Windows 8.1 and installed Visual Studio 2013. I am trying to update a previous WP7.1 solution but when opening with VS2013 I am asked to update some things. I select yes, and everything seems to work except for the Windows Phone Toolkit I got from NuGet in my original solution (built in VS2012). After updating I had a migration report error saying Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled. For more information, visit http://docs.nuget.org/docs/workflows/reinstalling-packages. Packages affected: WPtoolkit. Since my app was built targeting WP7.1 in VS2012 I assumed that removing and redownloading the WPToolkit would work, but it targets WP80 by default. It seems I cannot create a Windows Phone app targeting 7.1 anymore? Is there a solution for this?
You can not create wp7.1 apps in vs2013. It is not supported by visual studio 2013.However you can upgrade your wp7 app to wp8 app in vs2013. just open it in vs2013 and do same manual changes
Goto Tools>Nuget Package Manager> Package Manager Console
Write the following command:
PM> Update-Package -reinstall SilverlightToolKitWP

Windows 8 SDK Platform Toolset missing in Visual Studio 2010

I just installed .NET framework 4.5, the Windows 8 SDK, and the Windows 8 DDK on 2 different machines (one at home managed by me, one at work originally setup by IT) both with Visual Studio 2010 Professional SP1 already installed, and both running Window 7 Professional.
I had an old C++/Win32 application in Windows XP that used both the Windows SDK and DDK. I updated it for Windows 7 and Visual Studio 2010 project settings. However, it would not build because some of the SDK/DDK include and library files are new, and it couldn't find them with Platform Toolset set to "v100" in Visual Studio.
Manually adding the Include and Lib folders to the project made it build and run correctly.
Is there some way that I can add the newly installed SDK and DDK to Visual Studio 2010's "Platform Toolset" list? I thought it was supposed to do this automatically, but neither of the machines I use have it in their list after install and reboot.
After researching this quite a bit, I finally found a solution. It doesn't look like it can be added to "Platform Toolset" via any simple method, but at least you don't have to add the paths on every single project you want to use the API. This worked for me, and allowed me to build Microsoft's "USBView sample application" written for VS2012. The way Microsoft recommends (from the official Microsoft Visual C++ Team blog) is:
For a single project:
http://blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx
This seems to work with the final SDK release as well.
To apply those settings across multiple projects:
http://blogs.msdn.com/b/vcblog/archive/2012/11/23/using-the-windows-8-sdk-with-visual-studio-2010-configuring-multiple-projects.aspx

App for WP 7.1 with Async CTP dosn't work on WP 8

I just finished installing the SDK of WP8 and wanted to try my app now compatible with WP 7.1 and so I opened the project and compiled, but gives me errors only on the parts that use "async" and "await". I used Async CTP, but doesn't like much WP8. How can I fix and, above all, how can I make it so that the app functions both on WP and WP 8 7.1?
Thanks a lot!!!
You need to install this:
https://nuget.org/packages/Microsoft.Bcl.Async
Blog about the targeting pack:
http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx
Today, we are proud to announce an update to the Async Targeting Pack
we had previously released. The previous targeting pack allowed you to
use await when targeting .NET Framework 4.0 and Silverlight 5. Our
updated targeting pack allows you to use await in Visual Studio 2012
when targeting any of the following platforms (or higher versions):
.NET Framework 4.0 (with KB2468871) Silverlight 4 Windows Phone 7.5
and portable class libraries targeting those platforms
You cannot build Windows Phone 7.1 applications on Windows Phone 8 SDK without upgrading your project.
If you want to maintain WP7.1 version of your application with async/await feature, you will have to have Visual Studio Express 2010 for WP7.1 + Async CTP 3 along with VS2012 Express for Windows Phone.
UPDATE: There is a way to compile WP7 applications on Visual Studio 2012 Express for Windows Phone by using this nifty NuGet package. However, note that it is currently in prerelease version.

Resources