“Past Special -> Paste XML as Classes” feature is not available in Visual Studio 2012 if the project target is Windows Phone 7.1 (but it is present if the target is WP8)!!

I have Visual Studio Ultimate 2012 and now I was looking for the “Past Special -> Paste XML as Classes” feature allowing me to copy a XML and paste it as a serializable type.

However, even though I found several link talking about that feature (ex. here it says also of the other feature Past Special ->Paste JSON as Classes), I cannot see that item in the EDIT menù!! After the voice “Cycled Clipboard Ring” there is the “Delete” one and “Past Special” is missing. I was wondering if I need to enable something or to be in a project of a particular type (I was in a project with target Windows Phone 7.1).

In the past I used a similar feature as an Add-in coming from the WCF REST Starter Kit but even following again the instructions I followed for the past VS version (http://social.msdn.microsoft.com/Forums/en/wcf/thread/cc5843cb-9283-4789-9043-365e5a8d4beb) I cannot succede to make appear the menu voice “Paste Xml As Type” (that was the name) in VS2012.

The trick, or better work around, is to use a project targeted Windows Phone 8 and then copy the generated file in your Windows Phone 7.1 project. In fact, at least for the time being, for a possible bug of VS2012, the “Past Special” feature is missing if the project target is Windows Phone 7.1 but it is available it is Windows Phone 8!!

=========================================

12/4/2013 Note: this bug will not be fixed

Annunci

Informazioni su Enzo Contini

Electronic engineer
Questa voce è stata pubblicata in Windows Phone/Mobile. Contrassegna il permalink.

Lascia un Commento/Leave a comment

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...