How to compile project in Visual Studio without running after build? I'm compiling a dll extension, but Visual Studio is trying to run it (inconvenient), then an error occurs. Can I avoid this running?
To compile multiple C++ project items In Solution Explorer, choose multiple files that can be compiled, open the shortcut menu for one of those files, and then choose Compile, or press Ctrl+F7. If the files have dependencies, the files will be compiled in dependency order.
Ctrl+F7 will compile only the active source file. Look for the Compile item at the bottom of the Build menu. Of course, you'll still have to do a build before you can test, but if you just want a quick sanity check after modifying a source file, this can be handy.
On the menu bar, choose Build > Configuration Manager. In the Project contexts table, locate the project you want to exclude from the build. In the Build column for the project, clear the check box. Choose the Close button, and then rebuild the solution.
You can use the shortcut "CTRL+SHIFT+B" and it will just build without running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With