Guide for getting VisualGDB MSBuild to work on a build agent?

Sysprogs forums Forums VisualGDB Guide for getting VisualGDB MSBuild to work on a build agent?

This topic contains 7 replies, has 3 voices, and was last updated by  support 2 days, 16 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9746

    CurtisHx
    Participant

    I’m having a dickens of time getting the VisualGDB MSBuild process up and going on our TFS Build Agents.  I installed the latest version of VisualGDB and thought that was it.

    However, I’ve been running into problems on every build.  First build attempt resulted in this error:

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\VisualGDB\Platform.default.props (2): The imported project “C:\MSBuild\SysprogsPlatform.default.props” was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    C:\MSBuild didn’t exist on the build agent.  So I copied the MSBuild folder from C:\Program Files (x86)\Sysprog\VisualGDB to C:\.  Solved that problem.

    Tried to build again, and this time it errored with:
    C:\MSBuild\SysprogsPlatform.targets (51): Missing C:\SysGCC\arm-eabi\toolchain.props. Please regenerate it via VisualGDB.

    C:\SysGCC\arm-eabi\toolchain.props didn’t exist.  Copied it in from my machine.  Fixed that problem.

    On the 3rd build attempt, it errored with:

    C:\MSBuild\Targets\FastUpToDateCheck.targets (5): The “InitializeFastUpToDateCheckFile” task could not be loaded from the assembly \Sysprogs.Build.Tasks.dll. Could not load file or assembly ‘file:///C:\Sysprogs.Build.Tasks.dll’ or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

    C:\Sysprogs.Build.Tasks.dll does not exist.  I feel like the installation went wrong somewhere, but there were not any errors or problems installing.  Sysprogs.Build.Tasks.dll exists in C:\Program Files (x86)\Sysprogs\VisualGDB.

    What do I need to do to get this to work on a TFS build agent?

    • This topic was modified 9 months, 3 weeks ago by  CurtisHx.
    #9748

    CurtisHx
    Participant

    Turns out I just needed to reboot the build agent.

    DOH

    #12385

    Haqim
    Participant

    Hello,

     

    i’m working on the same topic, but for me the rebooting doesn’t help…

    I have:

    • Visual Studio 2015
    • TFS 2015 with git repo
    • Visual GDB v5.2R9

     

    When i build over tfs agent, i get:

    C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\FastUpToDateCheck.targets(5,2): Error MSB4062: The “InitializeFastUpToDateCheckFile” task could not be loaded from the assembly C:\Program Files (x86)\Sysprogs\VisualGDB\\Sysprogs.Build.Tasks.dll. Could not load file or assembly ‘VisualGDB, Version=5.2.15.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

     

    • C:\Program Files (x86)\Sysprogs\VisualGDB\MSBuild\Targets\FastUpToDateCheck.targets -> is there and ok
    • C:\Program Files (x86)\Sysprogs\VisualGDB\Sysprogs.Build.Tasks.dll -> is there and ok

     

    Any ideas / help ?!

     

    regards

     

    #12393

    support
    Keymaster

    Hi,

    The Sysprogs.Build.Tasks assembly actually imports many methods from VisualGDB.exe (VisualGDBCore.dll on v5.3+). Please ensure that this assembly is also present in the Sysprogs\VisualGDB directory.

    #12399

    Haqim
    Participant

    Yes, the file is around.

     

     

    Attachments:
    You must be logged in to view attached files.
    #12409

    support
    Keymaster

    Hi,

    Thanks for confirming this. Could you please try adding the reference to the VisualGDB directory to msbuild command line explicitly as described here?

    #12442

    Haqim
    Participant

    I tried, doesn’t help.

     

    On a note – it is no problem to build the project / solution in VS2015, but the TFS Agent struggles…

     

    I got the agent to verbose mode with detailed / diagnostic output.

     

    Maybe that helps to get it running? But i don’t see anything at the moment…

    But the Build Clean is working – the Build itself not?!

     

    regards

    • This reply was modified 6 days, 12 hours ago by  Haqim.
    Attachments:
    You must be logged in to view attached files.
    #12481

    support
    Keymaster

    Hi,

    Sorry for the delay. We will be able to investigate this in more detail next week after releasing v5.3 RC1. The problem happens because TFS is using a different assembly search path than the regular VS and cannot load the VisualGDB assembly.

    Our best advice would be to try different TFS settings related to assembly search path (e.g. see this post) to ensure the build agent can locate the VisualGDB assembly.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.