Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Additional file msbuild.exe command line

bng April 5, 2018

I need to add an additional file to a msbuild process.

Is it possible to add an command line argument in the MSBuild configuration options in Bamboo , which takes another csproj file?

1 answer

0 votes
Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

@bng Yes you can define multiple tasks in the same job for that purpose

  • The first task is to check out the repository that contains the csproj file you want to pass to msbuild.exe
  • The second task is to the script task, you can run the msbuild.exe from the the above checkout folder with the argument pointing to the relative path of csproj file

I hope this helps you

bng April 5, 2018

Thank you for your answer!

My Problem is that i have two csproj files for one Visual Studio project.  

In the first task i need the first one and in the second task i need the other one.

Do you have an example of such an argument?

Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events