Search code examples
silverlightversionxap

Silverlight 4.0 - how to target Silverlight runtime version for XAP in VS 2010?


I have a situation when my XAP is being produced with Silverlight version installed on my dev machine, while users (enterprise company) use a different (earlier) version. Users don't have ability to upgrade their Silverlight runtime due to IT Department policy.

I have no control over when or which version of Silverlight runtime that IT department is going to allow users to have. I know only Silverlight version they use at any given moment.

So the question is how can I build XAP file targeting specific version of Silverlight run time (4.0.50401.0 in my case)? I tried to play with AppManifest file and do some other manipulations inside of VS 2010 but was not lucky with finding solution yet.

I would appreciate if you could advise.

Thanks!


Solution

  • Tim Heuer blogged about this, http://timheuer.com/blog/archive/2010/09/28/keeping-your-silverlight-dev-environment-stable-through-service-releases.aspx.

    Basically he is suggesting you maintain the version of the Silverlight SDK that your users will have on your development machine. This will allow you to build XAPs against that version of the SDK.