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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo build got failed with error: MSB4019 and MSB1009

When I ran Bamboo build plan, it got failed with errors. Please help to me fix this issue.

Error summary for Default Job

MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\Windows\system32\config\systemprofile\AppData\Local\Temp\NuGetScratch\corcd4dw.was.nugetinputs.targets

Project "C:\Bamboo-Agent-Home\xml-data\build-dir\CRON-DR-JOB1\RMI.Tests\RMI.Tests.csproj" on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets(322,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Bamboo-Agent-Home\xml-data\build-dir\CRON-DR-JOB1\RMI.Tests\RMI.Tests.csproj]
"C:\Bamboo-Agent-Home\xml-data\build-dir\CRON-DR-JOB1\RMI.Tests\RMI.Tests.csproj" (default target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64\Microsoft.CSharp.CurrentVersion.targets(322,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\Bamboo-Agent-Home\xml-data\build-dir\CRON-DR-JOB1\RMI.Tests\RMI.Tests.csproj]

 

1 answer

0 votes
Chris Berry Atlassian Team Nov 22, 2018

Hi Divakar,

 

From the error seen the projects you are trying to import do not exist.

What <Import> directives have you set in the RMI.Tests\RMI.Tests.csproj file?

The issue looks to be that the csproj file is not looking in the correct location for these target files or that the targets have not actually been installed...The issue looks to be similar to the below article and not specific to Bamboo..

https://stackoverflow.com/questions/47260114/microsoft-csharp-core-targets-missing

Let us know if this helps..

Chris

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

587 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you