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 8589917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:10:22+00:00 2026-06-11T23:10:22+00:00

We are using Teamcity and deploy our websites with the msbuild MSDeployPublish target. This

  • 0

We are using Teamcity and deploy our websites with the msbuild MSDeployPublish target.
This works fine, but we also want to ensure that the application pool on the server we deploy to has the “Load User Profile” set to true.

How can we do this?

If not possible with MSDeployPublish, can it be done with a commandline-step and MsDeploy.exe?

  • 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-11T23:10:23+00:00Added an answer on June 11, 2026 at 11:10 pm

    It’s not possible using MSBuild, but it’s possible using MSDeploy.

    MSDeploy won’t let you specify the settings directly, but it will let you back up an app pool and apply it to another server (it will modify differences in settings if there are any).

    First, you need to backup your settings and commit them to SVN:

    msdeploy -verb:sync 
             -source:appPoolConfig="name of your apppool"
             -dest:package="apppool.zip"
    

    During compilation time, you need to sync the output package into the appppol package, since a manifest provider can’t include a package/archivedir provider:

    msdeploy -verb:sync
             -source:ApplicationPackage.zip
             -dest:appool.zip
             -skip:skipAction:Delete
    

    (The skip prevents the deploy from deleting the appPoolConfig provider from the target package)

    NOTE: Don’t do this the other way around (apppool.zip into ApplicationPackage.zip) as it will delete all your declared parameters and I’m not sure how to skip that.

    It’s probably possible to copy apppool.zip “underneath” ApplicationPackage.zip before it’s generated (via MsDeploySourceManifest) so it actually merges in one step, but I’ll leave that as an exercise for you until I get the time to test it.

    NOTE: You could also use dest:archivedir if you’d rather have files in a directory than a zip

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

Sidebar

Related Questions

I'm trying to build and deploy a web application using MSBuild and TeamCity. I've
I'm pulling my hair out over this MSBuild issue. We're using TeamCity to build
i'm using teamcity 5.1.5.. trying to build an MSBuild project with an AfterDeploy target
When using TeamCity to compile my MSBuild XML task script, it fails with this:
We are using Teamcity to do continuous integration builds for our website and have
I'm using TeamCity to do automated builds of test and production. TeamCity runs our
In our web-application we manage our continuous integration using TeamCity. So far we have
I am using the TeamCity Visual Studio runner. I want to add a setting
Having real problems creating artifacts in teamcity 6.5 (using TFS & MSBuild as the
I am using the MSBuild runner in Team city to build and deploy my

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.