When I debug my website\silverlight, it will always serve me the latest silverlight app I'm working on. but when I use the built-in web deploy. it won't deploy the latest silverlight xap.
-
See http://stackoverflow.com/a/6129804/34461 as it's the most efficient way. – Chui Tey Jun 21 '15 at 23:20
1 Answers
I've been fighting with this annoyance for days now. and here is the workaround I found:
Although this is not much related to the topic, it's a good start point when you face such problem. Make sure your clients download the latest version by marking the xap file path with a query string:
<param name="source" value="@Url.Content("~/ClientBin/YourSilverlightApp.xap")?@DateTime.Now.Ticks" />
Print the assembly version of your silverlight somewhere on the UI so you can actually confirm it is the latest you had in your debug environment.
Delete the xap from your website folder and your website project ClientBin folder.
Rebuild the website and it should create a new xap in your website project.
Now you can publish the entire website or just the xap itself and it should be the latest version.

- 2,223
- 3
- 32
- 49