Build DLL while debunning

Nalda Oudas 0 Reputation points
2025-04-23T01:16:47.5233333+00:00

I have searched around the web but did not find any discussions relating to this; I'm aware that Visual Studio has a Hotreload feature, however, that is not what I'm referring to here.

Let's say I have Project A that builds a DLL and Project B that builds an executable.

While debugging the executable, if I try to right click Project A and Build, VS won't let me do that. Instead it prompts me to stop debugging.

Ideal solution would be to compile the DLL from within VS then use UnloadLibrary/LoadLibrary.

Otherwise I'd have to write a cmd utility and keep that in sync with the VS project configuration.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,913 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nalda Oudas 0 Reputation points
    2025-04-23T01:49:49.6733333+00:00

    One way I found to build a project with its build configuration while debugging is to use msbuild on the command line:

    msbuild <YourProject>.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64
    
    
    0 comments No comments

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.