# Tahir Hassan's Blog

My Technical Notes

## Tuesday, 28 February 2017

### Where Passwords of Publish Profiles are Stored

In a web project, the Properties\PublishProfiles folder contains publish profiles. You will find two types of files for each publish profile, a .pubxml file and a .pubxml.user file. For Web Deploy and FTP publishing, the .pubxml.user file contains the password, in encrypted form. Only from your computer and your user account can this encrypted password be decrypted. Therefore adding to your repository is pointless if other people need the password.

A simple workaround is to simply add a text file containing the password to your project.

A more complicated solution (which I have not tested) is to Publish your website from the command line using msbuild.

TODO: test complicated solution