Teamcity error MSBuild 3202 file is not found

Hi. I am building on Teamcity server and it shows this error:

C:\Program Files\dotnet\sdk\3.1.414\NuGet.targets(282,5): error MSB3202: File "C:\BuildAgent\work\f30684b424400eb4\Engine\Source\Programs\MemoryProfiler2\MemoryProfiler2.csproj" not found.

I tried to change checkout directory by creating TBA folder and changing checkout directory to that folder. But problem still persists.

C:\Program Files\dotnet\sdk\3.1.414\NuGet.targets(282,5): error MSB3202: File "C:\TBA\Engine\Source\Programs\MemoryProfiler2\MemoryProfiler2.csproj" not found.

File "MemoryProfiler2.csproj" exists on TBA or BuildAgent, but folder "Engine" does not, while builder keeps searching for it.

What needs to be done? If you know how to solve it could you explain it in understandable instead of overly technical words.

0
1 comment
Hello,
TeamCity does not create its own file structures, it just runs the build "as requested", using external tools (msbuild, dotnet, etc) and using your own project. In this case, it seems that the "Engine" folder is created on compilation, and that the file is expected by the build in a different path. As such, the following questions/instructions should help to get the necessary information:
  1. How did you run your build? If you run build over .sln file, could you try running a build from the command line?
    • Example: dotnet build C:\BuildAgent\work\f30684b424400eb4\my.sln
    • You can also try to run the following: dotnet build "C:\BuildAgent\work\f30684b424400eb4\Engine\Source\Programs\MemoryProfiler2\MemoryProfiler2.csproj"
  2. Could you please try finding the file "C:\BuildAgent\work\f30684b424400eb4\Engine\Source\Programs\MemoryProfiler2\MemoryProfiler2.csproj" after a build on an agent computer?
The following guide might also be a useful read:
Please let me know your findings and if I can help you further.
 
Guilherme
0

Please sign in to leave a comment.