Trouble Generating Dependency Graph for Remote CMake Project in Visual Studio 2017
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:
- Configured Visual Studio 2017 for remote C++ development and connected to the Linux server using SSH.
- Set up the project in Visual Studio using the local folder that syncs with the remote server.
- Built the project remotely via Cmake-Build All in Visual Studio without any errors.
- 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!