Remote Linux build with MSBuild dont use built-in variables

Sysprogs forums Forums VisualGDB Remote Linux build with MSBuild dont use built-in variables

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30764
    mgandler
    Participant

    Hi,

    I am trying to compile a solution including one library project and the corresponding test application which links against the library.
    The test application relies on the the library and so it compiles first and with a “after build” step I copy the library in a specific folder
    on the build host using the built-in variable $(SourceDir). Within the test project I use the same variable under MSBuild settings -> Library Directories.

    But the variable is not set during the build process.
    It only works if I set the full path for the remote system.

    (version 5.6 Beta 2, build 4169)

    #30765
    support
    Keymaster

    Hi,

    MSBuild indeed uses its own set of variables that work separately from VisualGDB variables. Due to the architecture of MSBuild, unfortunately it’s not possible to easily propagate all VisualGDB variables to the MSBuild level. As a workaround, please consider using MSBuild property sheets. They allow defining reusable variables and targets and importing them from one or more projects.

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