Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Web Deploy 3.5 EncryptWebConfig rule handler?

We are wanting to setup publishing via the Web Deploy method in Visual Studio 2013. I've installed Web Deploy 3.5 on the destination web server and it's deploying properly.

We'd like to also use Web Deploy 3.5's EncryptWebConfig rule handler to encrypt our web.config files post-publish as described here: http://blogs.iis.net/msdeploy/archive/2013/07/09/webdeploy-3-5-rtw.aspx, which gives a command line example. However this is not an option in the "Publish Web" Wizard > Web Deploy Method , nor do I know how to add in that rule through directly modifying the .pubxml PublishProfile... Or is the EncryptWebConfig a rule I setup somehow in IIS on the server?

I was unable to find any further documentation on this rule anywhere...

like image 859
Darrow7456 Avatar asked May 08 '14 19:05

Darrow7456


1 Answers

I had also tweeted a guy who works for the Visual Studio Web team and he came through with this answer:

Add the property <MSDeployEnableWebConfigEncryptRule>true</MSDeployEnableWebConfigEncryptRule> to your .pubxml file

I figured it'd be like this, but previously could not find any references to the proper tag name, MSDeployEnableWebConfigEncryptRule, anywhere.

like image 86
Darrow7456 Avatar answered Oct 11 '22 13:10

Darrow7456