title: Passing encrypted password to msbuild
body: <p>I have a .NET framework project with a publish profile using an encrypted password. So I have 2 publish files: .pubxml and .pubxml.user (this one contains the encrypted password).</p>
  
  <p>However, if I run msbuild like this:</p>
  
  <pre><code>msbuild &lt;project&gt;.csproj /p:DeployOnBuild /p:PublishProfile=&lt;file&gt;.pubxml 
  </code></pre>
  
  <p>I get a 401 authentication error.</p>
  
  <p>Is it possible to pass the encrypted password somehow, or telling msbuild to use the .pubxml.user file?</p>