How do I pass this common property to MSBuild using TeamCity?

后端 未结 4 921
半阙折子戏
半阙折子戏 2021-02-19 06:10

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

4条回答
  •  暖寄归人
    2021-02-19 07:16

    You should use "System properties". Don't worry about the name, that's just how TeamCity calls it. They are regular properties. You can add them in "Edit Configuration Settings > 7. Build Parameters".

    For example, you can add the system property as follows:

    Name: system.FileAlignment

    Type: System property (system.)

    Value: 4096

    Note that TeamCity will insist on the "system." prefix. It doesn't matter because the MSBuild script will still see it as $(FileAlignment).

提交回复
热议问题