How do I specify the platform for MSBuild?

前端 未结 6 1180
一整个雨季
一整个雨季 2020-11-28 04:30

I am trying to use MSBuild to build a solution with a specified target platform (I need both binaries, x86 and x64). This is how I tried it:

C:\\WINDOWS\\Mic         


        
6条回答
  •  日久生厌
    2020-11-28 04:54

    When you define different build configurations in your visual studio solution for your projects using a tool like ConfigurationTransform, you may want your Teamcity build, to build you a specified build configuration. You may have build configurations e.g., Debug, Release, Dev, UAT, Prod etc defined. This means, you will have MSBuild Configuration transformation setup for the different configurations. These different configurations are usually used when you have different configurations, e.g. different database connection strings, for the different environment. This is very common because you would have a different database for your production environment from your playground development environment.

    They say a picture is worth a thousand words, please see the image below how you would specify multiple build configurations in Teamcity.

    In the commandline input text box, specify as below

    /p:OutputPath=Publish;Configuration=Dev

    Here, I have specified two commandline build configurations/arguments OutputPath and build Configuration with values Publish and Dev respectively, but it could have been, UAT or Prod configuration. If you want more, simply separate them by semi-colon,;

提交回复
热议问题