Trouble Generating Dependency Graph for Remote CMake Project in Visual Studio 2017

原 江 0 Reputation points
2024-05-24T06:16:32.42+00:00

Problem:

I am trying to generate a dependency graph for a CMake project that is built and runs on a remote Linux server using Visual Studio 2017. Despite successfully building the project remotely, when I attempt to generate a dependency graph (.dgml file) using the Architecture tools in Visual Studio, the output file shows nothing (it's empty).

Steps Taken:

  1. Configured Visual Studio 2017 for remote C++ development and connected to the Linux server using SSH.
  2. Set up the project in Visual Studio using the local folder that syncs with the remote server.
  3. Built the project remotely via Cmake-Build All in Visual Studio without any errors.
  4. Attempted to generate a dependency graph from the Architecture > Generate Code Map for Solution witout Building menu, but the resulting .dgml file is empty.

Environment:

  • Local OS: Windows 11
  • Remote Server OS: Ubuntu 16.04
  • Visual Studio 2017 Version: Enterprise
  • CMake Version on Server: 3.18.6

Additional Context:

  • The project uses CMake version 3.18.6. After connetc to server.

I have checked the documentation and forums for any similar issues, and I've tried restarting Visual Studio and rebuilding the project, but the problem persists.

Question:

Has anyone encountered a similar issue or does anyone have insights into why Visual Studio 2017 might fail to generate a dependency graph for a remote CMake project? Any suggestions on how to resolve this or workarounds would be greatly appreciated.

Thank you!

Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.