Bamboo MSBuils task - Microsoft.WebApplication.targets" was not found

my MSbuild task for .Net is keep on failing with below error for all the projects

Microsoft.WebApplication.targets" was not found, I'm not finding any solved solutions on line with bamboo MSBuild setup. Need help.

1 answer

With the little information you have provided, I just googled the error and found this post. Did you follow the steps mentioned there?

Can you please try to run the same project from the command line of your EC2 instance (from the same directory where Bamboo tries to run your project) using the same user that runs the elastic agent. If you get the same error running your project from command line (without Bamboo) then the problem is not really related to Bamboo.

if it works fine from command line, check the following

  • if the path you have given in Project File field is enclosed in double quotes (")
  • Check if you are running as the same user and with the same environment variables. Compare the environment variables of both command line and Bamboo by running the command "SET" (using a script task before MSBuild task) and spot the difference and fix it.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,489 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you