Thursday, May 6, 2010

Silverlight Visual Studio how to add existing Silverlight projects

When you want to use existing Silverlight projects (like demos from Devexpress Silverlight AgGrid) in Visual Studio do the following:

  1. Start a Silverlight Application
  2. Host it in a new web site.
  3. Add the Silverlight Project.
  4. Right click on Web application
  5. Select Properties.
  6. Select Silverlight Applications tab
  7. Press the Add button
  8. Use existing project radio button will be normally selected.
  9. The drop down menu will show you the Silverlight projects available in the solution.
  10. Select add a test page.
  11. Leave the destination folder as ClientBin
  12. Press the Add button.
  13. A test page is added
  14. The XAP file from the silver light project is added to the ClientBin.
  15. Every time you make changes in the silver light project and compile the solution is updated.
  16. Sometime the F5 (Compile and Run) button in Visual Studio does not use the updated file.
  17. You may have to do a compile first and then run it.

No comments:

Post a Comment