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

Bamboo build got failed with error: MSB4019 and MSB1009

Divakar Reddy Matteddula
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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
AUG Leaders

Atlassian Community Events