My question is around updating an appsetting value, in the Post-deployment script section to a Project Variables value?
We have a value that often updates, and I thus can’t do a powershell replace since this value changes.
The pre-deployment script section intentionally removes the web.config file, and thus I cannot update this value there. I can only update this value to the existing web.config that is not included in the deploy.
Thus, how in the post deployment script section could I update the “MyKey” value to Project Variable “MyProjectVariable” (e.g.
<appSettings> <add key="MyKey" value="1001" /> </appSettings>