Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,178
Community Members
 
Community Events
168
Community Groups

Bamboo errors with MSBuild

We have a Bamboo agent that won't properly run MSBuild.  When we run the solution in the IDE, the projects all run fine without any errors.  But the Bamboo build plan is unable to build the same solution.  We keep getting these errors:

The current .NET SDK does not support targeting .NET Core 2.0.  Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.0.

We've tried to install the .NET SDK 2.2 and .NET Core 2.0, plus removing .NET Core 2.0 and only having .NET Core 1.1, but no combination seems to work.  

Is there something specific we need to set in the build plan or with the MSBuild executable?

Thanks!
-Christian

1 answer

0 votes

Hi @Christian Palacios

I'm wondering if this issue is not caused by server capabilities. You should be able to get the same or pretty similar results if you compare a Bamboo build and an OS terminal build/IDE.

Things I would check:

  1. What is the agent running this build?
    Is it able to build the code from outside Bamboo?
  2. What is the executable called to build your code?
    This one is the one configured in the capability used to build your code.
    You can check the executable used on your build logs.
  3. What arguments are used in the build in comparison with the ones used when you run the build outside Bamboo?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events