I've been using Amy Dullard's great batch file for switching the tools back and forth between Silverlight 2 and Silverlight 3. It works great except that it doesn't change the runtime. And while the Silverlight 3 runtime *should* run any Silverlight 2 code fine, I just don't trust it. So I had to make it better.
I've made a small change in Amy's batch file to uninstall and install the right runtime, but there is a hitch. You need to download the runtimes yourself (as they are downloaded during installation and since Amy's batch is opening up the Setup package, they aren't there).
To use the batch file you'll need to download the file (here) and unzip it into an empty directory. Into that directory copy the following files:
You can download them by clicking on the links.
If you haven't done so already, run the Silverlight 2 Tools Package and the Silverlight 3 Tools Package. Finally you can run the Setup_SLTools_Util.bat file that is in the zip file. This will create new batch files for moving two and from SL2/SL3 for Visual Studio and Visual Web Developer Express. Please see Amy Dullard's post about it for more information about how the batch files are used:
|Building a Web App with ASP.NET Core, MVC6, EF Core and AngularJS (New)|
|Building a Web App with ASP.NET5, MVC6, EF7, and AngularJS (Retired)|
|Best Practices in ASP.NET: Entities, Validation, and View Models|
|Front-End Web Development Quick Start|
|Lessons from Real World .NET Code Reviews|
|Node.js for .NET Developers|
|Implementing ASP.NET Web API|
|Application Name||WilderBlog||Environment Name||Production|
|Application Ver||184.108.40.206||Runtime Framework||.NETCoreApp,Version=v1.0|
|App Path||D:\home\site\wwwroot||Runtime Version||.NET Core 220.127.116.11|
|Operating System||Microsoft Windows 6.2.9200||Runtime Arch||X86|