VisualGDB Docker for Windows with MSBuild

Sysprogs forums Forums VisualGDB VisualGDB Docker for Windows with MSBuild

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30757
    rico227
    Participant

    Is it possible to get VisualGDB running in a Windows-Docker-Container? The project is an embedded project with MSBuild. The setup should be able to be triggered by a CI-Server (Jenkins).

    #30758
    support
    Keymaster

    Hi,

    The easiest way to do that would be to generate a .bat file for the MSBuild project on one of the development machines, check it into the source control, and run it on your Docker container. This way you won’t need to worry about installing Visual Studio, VisualGDB or any other tools under docker.

    You can find more information about generating batch files for MSBuild projects here: https://visualgdb.com/documentation/projects/msbuild/#standalone

    #30760
    rico227
    Participant

    Hi,

    the issue with the .bat I have right now is that in the .rsp-files the ‘-c’-flag is an absolute path. On different development machines the path to the .cpp-files can be different which makes it complicated to get the path right in Jenkins/Docker.

    • This reply was modified 3 years, 4 months ago by rico227.
    #30767
    support
    Keymaster

    Hi,

    Indeed, the .rsp files are generated after all variables have been expanded and contain very low-level instructions to GCC and other similar tools. The easiest work around it would be to use a simple custom script that will patch the paths inside the .rsp files when they are checked out under a different path. This should be still easier than setting up a complete development environment, including VS and VisualGDB on a docker container.

    #30777
    rico227
    Participant

    Hi,

    I guess the work around does the job. Thanks for the support!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.