Is there a way to remove parameters from the generated SetParameters.xml within an MSDeploy package.
My Parameters.xml looks like this:
<parameter name="Server" defaultValue="" />
<parameter name="Directory" defaultValue="" />
<parameter name="Service URL" defaultValue="http://{Server}/{Directory}/Services/GeneralIntegrationService.svc" tags="hidden">
<parameterEntry kind="XmlFile" scope="Web.config" match="//system.serviceModel/client/endpoint[@name='BasicHttpBinding_IGeneralIntegrationService']/@address" />
what I want is the generated SetParameters.xml to only contain the first 2 parameters.
I've reviewed this question: Can MSBuild exclude "Hidden" Web Deploy parameters from the generated SetParameters.xml?
however, I can't get my head around how the .targets file is supposed to set up. Can someone detail a complete example of what the parameters.xml and the .targets file looks like. Also, is there anything I need to set in the build properties of the .targets file?