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).
However, if I run msbuild like this:
msbuild <project>.csproj /p:DeployOnBuild /p:PublishProfile=<file>.pubxml
I get a 401 authentication error.
Is it possible to pass the encrypted password somehow, or telling msbuild to use the .pubxml.user file?