Saturday, May 01, 2010

 

Silverlight & ASP.NET Framework Versioning

Below describes how to create a silverlight app that uses a specific .NET framework version for Silverlight with a separate and also specific ASP.NET framework version that your web host will support. After doing this once it's a trivial thing to repeat.

1. Create Silverlight project using your preferred framework version
1.1 Uncheck "Host the Silverlight application in a new Web site". Checking this will not let you pick the framework version of the new website.

2. Right click Solution and select "Add/New Project". If you want the default New Web project type (ASP.NET Web Application Project" do NOT select "Add/Web Site..."

3. Select "ASP.NET Web Application".
3.1 Change the .NET Framework version (at the top) to what your web host supports.
3.2 Change the name (at the bottom) to have a ".web" at the end.
3.3 Double check the location is the same as your Silverlight app.
3.4 Click ok

4. Right click the ".web" project you just added and select "Set as Startup Project".

5. Right click the ".web" project again and click "Properties"
5.1 Select Silverlight Applications
5.2 Click "Add..."
5.3 ensure it shows the correct Silverlight project.
5.4 Click "Add"
5.5 Click "ok"

6. right click to "Set as Start Page" or copy code from the "(SilverlightProjName)TestPage.aspx" to Default.aspx

Your Silverlight application (Of your chosen framework version) should now be visible in the ASP.NET site you created.

Labels: ,


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]