Geeks With Blogs
Braulio Díez Botella blog
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

Posted on Monday, August 24, 2009 3:13 PM | Back to top


Comments on this post: Linking more than one Silverlight project to an existing ASP .net project

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
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.
Left by Matthew Hall on Nov 14, 2009 4:53 PM

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
Thanks. When I found what it was, I thought... let's write a post and save some minutes to other colleagues :-).
Left by Braulio on Nov 14, 2009 10:21 PM

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
That is too great.
thanks
Left by mli on Mar 17, 2010 8:48 AM

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
How do i add existing sl project to existing website??
Left by Jagz on Apr 22, 2010 2:27 PM

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
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.
Left by Braulio on Apr 22, 2010 4:10 PM

# re: Linking more than one Silverlight project to an existing ASP .net project
Requesting Gravatar...
This is really awesom.I was desparately looking for this.Thanks a lot for sgaring.
Left by subrat kumar on Nov 20, 2010 3:42 PM

Your comment:
 (will show your gravatar)


Copyright © Braulio Díez Botella | Powered by: GeeksWithBlogs.net