posts - 32, comments - 52, trackbacks - 0

My Links

News

Archives

Image Galleries

About Me

Linking more than one Silverlight project to an existing ASP .net project

When you create a new Silverlight project, VStudio asks you to add web site project  to host that Silverlight application, that’s great and a time saver: Visual Studio creates for you a new web project that contains the SL XAP application inside a folder called ClientBin, each time you make changes in your SL project and compile that XAP on the web project will get updated.

Default Sl linking

So far so good… but what happens when you want to add more Silverlight projects and linked them to the current existing web project? (e.g. you have several widget projects, or you want to chop the app in several XAP’s and use asynchronous XAP load), one option is to do that on the wizard dialog that appears when creating the XAP… but if you are in the case of  integrating an existing project or you have just skipped that dialog…
If you google a bit you will find a bit confusing approach: a context menu option called “add linked server”, that doesn’t appear in your visual studio menu’s, What’s that? Well it’s an old CTP or Alpha approach to link a SL project to an existing web project, this options has been removed in the further releases of SL. What’s the right approach then? … Quite easy, just only need to know where’s now the option :):
-          Just click to show the properties of your web project.
-          Choose the Silverlight Applications Tab.
-          And click on Add to add the new Silverlight project.

Project SL Properties

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Monday, August 24, 2009 3:13 PM |

Feedback

Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

That's great thanks for sharing! As you say you just need to know where the option is hidden. I was looking at all the build options convinced it was some sort of post build event.
11/14/2009 4:53 PM | Matthew Hall
Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

Thanks. When I found what it was, I thought... let's write a post and save some minutes to other colleagues :-).
11/14/2009 10:21 PM | Braulio
Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

That is too great.
thanks
3/17/2010 8:48 AM | mli
Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

How do i add existing sl project to existing website??
4/22/2010 2:27 PM | Jagz
Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

If it's ASP .net 2.0 you can just copy the XAP and embedd it in your ASP .net page using the object tag (and copying the silverlight initialization js).

If it's ASP .net 3.5 SP1 site you can add the project to the solution and then follow the steps to include the XAP in your app.
4/22/2010 4:10 PM | Braulio
Gravatar

# re: Linking more than one Silverlight project to an existing ASP .net project

This is really awesom.I was desparately looking for this.Thanks a lot for sgaring.
11/20/2010 3:42 PM | subrat kumar
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: