I am deploying a website using TFS i have a batch script that encrypts web.config file at the moment i have the id of the site hardcoded in.
QUESTION: How could i get the Website ID of the website that is being deployed and put it into the script #
I tried to pass in the application name but The encryption doesn't work. It needs the site id.
Also i can see the Site ID by calling the command
appcmd.exe list site SomeSite
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pe "connectionStrings" -app "/" -site "2"