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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:31:04+00:00 2026-06-05T19:31:04+00:00

When I run the following msbuild command: msbuild /t:Package /p:Configuration=Release;PackageLocation={MY PACKAGE LOCATION} My package

  • 0

When I run the following msbuild command:

msbuild /t:Package /p:Configuration=Release;PackageLocation={MY PACKAGE LOCATION}

My package is created correctly and the contents of my SetParameters file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<parameters>
  <setParameter name="IIS Web Application Name" value="Default Web Site/SiteNameIWant" />
</parameters>

“SiteNameIWant” comes directly from my web application project file:

<DeployIisAppPath>Default Web Site/SiteNameIWant</DeployIisAppPath>

I have my web application project file configured this way for both the Debug and Release configurations.

When I run my build via TeamCity, however, my site name comes out as “SiteNameIWant.csproj_deploy”. I have found a workaround by explicitly adding a build parameter:

system.DeployIisAppPath=Default Web Site/SiteNameIWant

However, I’m not satisfied with this solution because TeamCity is ignoring the value (set per configuration) in my web application project.

How do I get TeamCity to respect my web application project file’s setting?

  • 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-05T19:31:06+00:00Added an answer on June 5, 2026 at 7:31 pm

    It’s always something obvious, isn’t it? Not surprisingly, the problem was with me, not TeamCity. 😀

    I realized what was happening was that the change that I had applied to my web application project file for the DeployIisAppPath setting was not committed to source control. So, running msbuild locally worked but TeamCity was still getting the old value that had not yet been updated in source control. Doh!

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

Sidebar

Related Questions

I run the following Gert's extract command to the data dump file which format
I run the following command in Emacs unsuccessfully C-u How can you clear the
I tried to run the following command and it says there is nothing to
Quick question about MSBuild. I have the following MSBuild file in directory d:\MyDirectory <Project
I'm attempting to build a WP7 solution file form the command line using MSBuild
I have the following MSBuild project file: <?xml version=1.0 encoding=utf-8?> <Project xmlns=http://schemas.microsoft.com/developer/msbuild/2003 DefaultTargets=Deploy ToolsVersion=4.0>
I am trying to run the following commands as part of an MSBuild script:
I have the following build script, which I run with MSBuild: <?xml version=1.0 encoding=utf-8?>
I get the following error message when trying to run a build file: error
I can execute the following command in PowerShell: msbuild c:\some\spaced path\project.sln /p:MvcBuildViews=False /p:OutDir=c:\\some\\spaced path\\deploy\\Package\\

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.