Enhanced deployment parameterization in a light switch application

I use MSDeploy to modify the web.config of my service during deployment. This works great, except that now I am developing a Lightswitch application that generates its own parameters.xml file. Therefore, when I can configure Lightswitch parameters during deployment, I did not understand the way to enter my own parameters. I can, of course, change the .xml options after posting. Is there a more direct way to tell Lightswitch to turn on my settings?

+8
msdeploy visual-studio-lightswitch
source share
1 answer

In a standard ASP.NET web application project, you can simply add the parameters.xml file to your project, and it will be used instead of the generated file. I would expect LightSwitch to support this as well, but the next blog post from 2011 suggests it doesn't work.

http://blog.pragmaswitch.com/?p=120

This may have been fixed in later versions of VS / MSBuild. I would try this first.

In a previous blog, it was suggested that you modify the parameters.xml file in the package as a workaround.

You can also add parameters using MSDeploy.exe declareParamFile or declareParam parameters

http://technet.microsoft.com/en-us/library/dd569084(v=ws.10).aspx

Hope this helps!

+1
source share

All Articles