Skip to main content

Microsoft Silverlight

Answered Question How to convert 1.1 apps to ver 2.0?RSS Feed

(0)

hgamezoom
hgamezoom

Member

Member

56 points

49 Posts

How to convert 1.1 apps to ver 2.0?

Firstly I cannot open 1.1 project when installed 2.0 add-in .

So I'm trying to create a new project of v2.0 and copy my old xaml files into the project, however, it can not be compiled. There are some errors in the silverlightapplication1.g.cs file,the following line(auto generated by VS)

  this.rectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle")));

Error 1 'SilverlightClassLibrary1.SilverlightApplication1' does not contain a definition for 'FindName' and no extension method 'FindName' accepting a first argument of type 'SilverlightClassLibrary1.SilverlightApplication1' could be found (are you missing a using directive or an assembly reference?) c:\documents and settings\admin\my documents\visual studio 2008\projects\silverlightclasslibrary1\silverlightclasslibrary1\obj\debug\silverlightapplication1.g.cs 60 70 SilverlightClassLibrary1

  

Anyone can help ? I have more than 30 xamls in the old application, I'm getting crazy.

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: How to convert 1.1 apps to ver 2.0?

hgamezoom:
Anyone can help ? I have more than 30 xamls in the old application, I'm getting crazy.
 

AFAIK, there is no standard way to convert Silverlight 1.0 or 1.1 project to 2 beta1. You have to go through the breaking changes doc. You have to search the equivalent syntax in SL2. If you can't find then you can come here and ask..

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


brauliod
brauliod

Participant

Participant

1169 points

472 Posts

Silverlight MVP
Answered Question

Re: How to convert 1.1 apps to ver 2.0?

I had to convert an smaller project from 1.1 to 2.0 and it was a pain in the neck, no tool for conversion (that's the problem of using an alpha technology :-().

 Fortunately when you fix the first XAML file you find that most of the changes are just find and replace or small tweaking.

  Just create a new project and add the first XAML file, go tweaking and checking the guide (you have to indicate in the App.cs file that the added file is the one to start with the application).

  We found most of the problems located in:

  • Root element is not now a canvas.
  • Now all elements are user controls.
  • User control load event.
  • Webservices call have changed a bit, now they are async. and support SOAP.

  Good luck

     Braulio

// ---------------------------------
    Braulio Diez

    http://www.dbschemaeditor.com
    Free Silverlight Based Database Schema Editor
/// ---------------------------------
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities