Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8723443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:37:43+00:00 2026-06-13T07:37:43+00:00

In Visual Studio 2012, using publish profiles along with web deploy simplifies the deployments

  • 0

In Visual Studio 2012, using publish profiles along with web deploy simplifies the deployments quite a bit. However it still is missing few things or may be I don’t know how to use it yet.

  • I prefer to use the NTLM authentication without storing the username and password (especially) in the publish profiles. How can this be done? If I leave the username and password empty, I am prompted for it. Is there a way like manually modifying the .pubxml files?
  • Why is the username/password stored in PublishProfileName.pubxml that I have checked in the source control and not in PublishProfileName.pubxml.user that is local to each user? I could at least save the username but obviously don’t want that to be checked in.
  • The Configuration itself is not part of PublishProfileName.pubxml but is stored in PublishProfileName.pubxml.user as LastUsedBuildConfiguration.
  • Same for the Platform as last point.
  • I am also missing support for multi-server deployments. I am currently forced to use batch files in addition to Publish Profiles.

EDIT

The command line that works fine for publishing is

MSBuild.Exe MyProject.sln /p:Configuration=QA /p:DeployOnBuild=true;PublishProfile=PublishToQA;AllowUntrustedCertificate=true /p:authType=NTLM /p:UserName=

In this I would like to omit the /p:Configuration=QA if the configuration becomes part of the publish profile itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:37:45+00:00Added an answer on June 13, 2026 at 7:37 am

    Some answers to your questions.

    • I prefer to use the NTLM authentication without storing the username and password (especially) in the publish profiles. How can
      this be done? If I leave the username and password empty, I am
      prompted for it. Is there a way like manually modifying the .pubxml
      files?

    Your authentication is typically driven by how Web Deploy is hosted. By default if you are using the Web Management Service then you are using IIS users for auth. With IIS users you can control which users have permissions to specific sites/apps. You can configure WMSVC to use windows auth as well though. If you have issues using VS for those scenarios let me know.
    If you are using the Remote Agent service to host Web Deploy then in this case you’ll be using windows auth.

    • Why is the username/password stored in PublishProfileName.pubxml that I have checked in the source control and not in
      PublishProfileName.pubxml.user that is local to each user? I could
      at least save the username but obviously don’t want that to be checked
      in.

    We have another mechanism for you to determine what information is private/shared. With the exception of the password all publish info is shared (and checked in by default). In order to simplify the design you can either have a publish profile which is shared, or one which is not shared at all. There is no in-between in which you have a profile that some fields are shared and other not. Password is special cased here and encrypted on a per-user/per-machine basis in the .pubxml.user file.

    If you’d like to have a private publish profile then you can simply not check in the .pubxml file which corresponds to the publish profile. These are stored in the Properties\PublishProfiles (or My Project\PublishProfiles for VB) and just exclude them from the project and don’t check the files in. The publish dialog looks for the profiles on disk, not just the ones which are in the project. Everything should continue to work.

    We don’t support the concept of selectively storing values in the .pubxml.user file. The publish dialog will only store a set number of values in that file. Instead of

    • The Configuration itself is not part of PublishProfileName.pubxml but is stored in
      PublishProfileName.pubxml.user as LastUsedBuildConfiguration.
    • Same for the Platform as last point.

    This was a mistake it should have been stored in the .pubxml file, not the .pubxml.user file. We have since fixed this, but haven’t had a chance to release the update yet.

    The Configuration property cannot be set in the publish profile. The Configuration property is a core part of the build process. To be more specific, the reason why we didn’t call this property Configuration is because the .pubxml file is imported into the definition of the .csproj/.vbproj during a build & publish. Since other properties are defined based on Configuration you cannot change the value once it’s been set. I just blogged with way too much detail on this subject at http://sedodream.com/2012/10/27/MSBuildHowToSetTheConfigurationProperty.aspx. This limitation is an MSBuild thing not a publish limitation. For command line you should specify Configuration in the following way:
    msbuild.exe myproj.csproj /p:…(other properties)… /p:Configuration=

    • I am also missing support for multi-server deployments. I am currently forced to use batch files in addition to Publish Profiles.

    We don’t have direct support for this, but if you expand on your needs I may be able to help. FYI I have an extension which you may be interested in. I have posted a 5 min video to http://sedodream.com/2012/03/14/PackageWebUpdatedAndVideoBelow.aspx.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple web service I have created. I'm using Visual Studio 2012
I am using the Visual Studio Publish Web screen to publish my ASP.Net to
Using Visual Studio 2012, I created a new ASP.NET MVC 4 web project, using
I am currently developing on Visual Studio 2012 RC using TFS Preview for source
I'm using Visual Studio 2012 for Windows Phone 7 and this is my first
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I'm using SOAP through Visual Studio 2012 RC with C# to use the Magento
I am using Visual Studio Express 2012 RC. If a create a blank hello
I am using Visual studio 2011 beta with the april 2012 update installed .I
In the Visual Studio 2012 RC, I can't install Web Developer Tools properly. None

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.