I am going to start a process to upgrade our existing SL project to the latest environment. I think that I might need to do this in steps, as the first trial run using the upgrade utility died a miserable death almost instantaneously. Well to be fair, it updated my references successfully in the project file before crashing on the first class file it found.
Current environment:
SL 3, IG SL LOB 2009.2, ASP .Net 3.5
Where we want to be:
SL 4, IG SL LOB 2010.3, ASP .Net 4.0
So, my question is does the upgrade utility depend on the other upgrades happening first? The first go round was to let IG attempt to deal with it. Within 3 files the utility crashed. So, any advice you can give please let me know. My next iteration I will try upgrading the SL and .Net targets first.
If you want to know the details of the crash, here is the exception. Looks like a problem with your text replace function..
09:39:11: Replacing Imports Infragistics.Silverlight.Controls.Primitives with Imports Infragistics.Controls.Grids.Primitives in code behind file.09:39:11: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: startIndex09:39:11: at System.String.Insert(Int32 startIndex, String value) at Infragistics.VersionUtilitySupport.Core.File.Types.CodeBehindFile.Upgrade(String rootDirectory) at Infragistics.VersionUtilitySupport.Core.File.Types.AdditionalFiles.Update(DirectoryInfo workingDirectory) at Infragistics.VersionUtilitySupport.Core.File.Types.ProjectFile.Upgrade(String rootDirectory)
Hi Alan,
I’m assuming that you already have Visual Studio 2010 installed and have the 4.0 Framework and SL 4. I would recommend that you bring the application into Visual Studio 2010 and set the Target Silverlight version and the Target Framework of the applications. Then you will need to replace all of the assembly references and address the namespace and class names that will need to be revised in your application.
It would be helpful for you to review the following links. They'll give you some background as to why and the specifics you'll need.
Upgrading Your Silverlight Projects
http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=Upgrading_Your_Silverlight_Projects_10.2.html
Silverlight 2010 Volume 3 Assembly Rename and Refactoring
http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=Breaking_Changes_2010_Volume_2_Assemly_Rename_and_Refactoring.html
Let me know if you have any questions.