Skip to main content
Home Forums General Silverlight Getting Started How to convert 1.1 apps to ver 2.0?
2 replies. Latest Post by Brauliod on March 21, 2008.
(0)
hgamezoom
Member
56 points
49 Posts
03-20-2008 11:56 PM |
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
Star
14606 points
2,730 Posts
03-21-2008 12:29 AM |
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..
brauliod
Participant
1169 points
472 Posts
03-21-2008 11:04 AM |
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:
Good luck
Braulio