Change Silverlight Class Library to Application

Add New Item to the Silverlight Class project > Silverlight Application Class (This adds app.xaml, app.xaml.cs files)

Open the class library project file and change <SilverlightApplication>false</SilverlightApplication> to true (Unload the class library project and edit the csproj file)

Add new element XapOutputs to project file below the element<SilverlightApplication> i.e. add <XapOutputs>true</ZapOutputs>

Now open Project Properties of the Silverlight Class library and change to the > Silverlight tab > Change the starter object

Change the following Project Property > Silverlight tab > Set the Xap file name

 

In the related web application add project property > Silverlight tab > Add your Silverlight application

You have not changed a Silverlight class library to an application project where the xap will be output and copied to the respective web site ClientBin directory.

 

 

Author

David

comments powered by Disqus

Categories

Recent Tweets

@jeffrey_doucet @Brian_Bancroft Canadians, self define themselves as NOT American, rather than being Proud Canadians
Retweeted by @dyardy Why do so many Canadians obsess over American policy that won’t impact us while being fairly ambivalent to day-to-d… twitter.com/i/web/status/9…
@melrobbins I was looking for 50$ earlier today, and still can't find it...ideas :)
Trump Watches Up To 8 Hours Of TV Per Day | HuffPost #SmartNews ===that explains everything huffingtonpost.com/entry/trump-te…
Retweeted by @dyardy Boston https://t.co/QmtMIF8P0F