How do I get this command line script to work in TeamCity?

I finally got msbuild to execute and publish on the command line. Now I wonder how can I do this through teamcity?

When I run this command line, it works!

C: \ TFS \ project \ myProject \ APIproject> msbuild apiproject.csproj / P: DeployOnBuild = true / p: PublishProfile = "Properties \ PublishProfiles \ DEV.pubxml" / p: VisualStudioVersio n = 14.0

However, I do not see in TeamCity a good solution to run this script.

0
source share
1 answer

See documentation : add MsBuild build step and fill in the fields accordingly. Your command line has been translated into these fields:

  • 'Creating file path' relative / path / to / apiproject.csproj
  • "Goals" I guess "Assembly", but may be empty for the standard
  • "Command line options" here you can specify all the properties, as on the command line. TeamCity can cause warnings because you are doing it, because an alternative and preferred way is to make all these properties build parameters for TeamCity: TeamCity automatically passes build parameters to MsBuild.
+2
source

All Articles