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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:24:47+00:00 2026-06-06T06:24:47+00:00

I am using the TeamCity Visual Studio runner. I want to add a setting

  • 0

I am using the TeamCity Visual Studio runner. I want to add a setting that is not accessible from Visual Studio.

/Property:FileAlignment=4096

I typed that directly into the build step “Command line parameters.” The build log shows the error:

MSBuild command line parameters contains “/property:” or “/p:” parameters. Please use Build Parameters instead.

I don’t understand how to provide this to MSBuild from TeamCity and get rid of this warning!

1. Which kind of parameter should I use?

There are 3 kinds:

  • Configuration parameters
  • System properties
  • Environment variables.

I don’t want an environment or system variable because I don’t want this build to depend on anything external. I am going to try Config right now, but then I’m not sure I’m filling it in right.

2. How can I tell this parameter is actually getting used?

The build log, which seems only to have navigable/foldable xml-like levels with their program, did not say the build parameters.

  • 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-06T06:24:49+00:00Added an answer on June 6, 2026 at 6:24 am

    This was solved. To clarify, Anthony told how to solve the problem in the commandline using MSBuild. It can also be solved on the commandline using devenv, per a ticket with Microsoft, the syntax is:

     devenv ..\..\mysolution.sln /Rebuild /Property:Config=Release;Platform=AnyCPU;Filealignment=512
    

    What I wanted, however, was to get Teamcity’s “Visual Studio Build” to accept the parameter. This was achieved as follows. In the box for Command line parameters, I entered:

    /Property:FileAlignment=filealignment v:diag
    

    Then the output tab for Build Parameters shows:

    User Defined Parameters
    Name                    Value passed to build
    system.filealignment    512
    system.verbosity        diagnostic
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i run Run Personal Build from the TeamCity addin to visual studio 2005
I want to auto publish the sites using teamcity. I am using teamcity's Visual
I'm using the visual studio (.sln) builder in teamcity 6.0, I would like to
I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution
We're moving away from TFS as a source control/build service. We're now using TeamCity,
Visual Studio 2010 has a Publish command that allows you to publish your Web
I'm about to upgrade to Visual Studio 2010, and I'm learning that there are
I have a Visual Studio 2010 project that is targeted to .NET Framework 3.5.
I have a C++ Builder 2010 project that's being built using TeamCity . I
How to increment the Assembly version on each build in TeamCity using Build Runner

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.