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]
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.