VS2017 Build all solutions when pressing F5 buy only execute one
I'm currently working on a project that has a DLL and a .exe that loads it. Whenever I press F5, it compiles the .exe project(which is set as default) but it does not compile the DLL one(which is the one with the most changes to).
I've tried the "Multiple Startup Projects" feature in the solution's properties, does force the DLL project to compile, but it always pops a message box saying it can't launch a DLL file.
Is there anyway I can tell Visual Studio to build the .exe and the .DLL whenever I press F5(or click the button) but only start the .exe one?
visual-studio-2017
add a comment |
I'm currently working on a project that has a DLL and a .exe that loads it. Whenever I press F5, it compiles the .exe project(which is set as default) but it does not compile the DLL one(which is the one with the most changes to).
I've tried the "Multiple Startup Projects" feature in the solution's properties, does force the DLL project to compile, but it always pops a message box saying it can't launch a DLL file.
Is there anyway I can tell Visual Studio to build the .exe and the .DLL whenever I press F5(or click the button) but only start the .exe one?
visual-studio-2017
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31
add a comment |
I'm currently working on a project that has a DLL and a .exe that loads it. Whenever I press F5, it compiles the .exe project(which is set as default) but it does not compile the DLL one(which is the one with the most changes to).
I've tried the "Multiple Startup Projects" feature in the solution's properties, does force the DLL project to compile, but it always pops a message box saying it can't launch a DLL file.
Is there anyway I can tell Visual Studio to build the .exe and the .DLL whenever I press F5(or click the button) but only start the .exe one?
visual-studio-2017
I'm currently working on a project that has a DLL and a .exe that loads it. Whenever I press F5, it compiles the .exe project(which is set as default) but it does not compile the DLL one(which is the one with the most changes to).
I've tried the "Multiple Startup Projects" feature in the solution's properties, does force the DLL project to compile, but it always pops a message box saying it can't launch a DLL file.
Is there anyway I can tell Visual Studio to build the .exe and the .DLL whenever I press F5(or click the button) but only start the .exe one?
visual-studio-2017
visual-studio-2017
edited Nov 21 '18 at 0:35
asked Nov 21 '18 at 0:18
David
416
416
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31
add a comment |
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31
add a comment |
1 Answer
1
active
oldest
votes
VS should build any projects that it recognizes as out of date. If the DLL project is not referenced by the EXE project, then you can add an explicit build dependency by right-clicking on the solution and picking Project Dependencies
from the context menu. This lets you specify build dependencies before a given project build (in addition to relationships implied though project references).
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403553%2fvs2017-build-all-solutions-when-pressing-f5-buy-only-execute-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
VS should build any projects that it recognizes as out of date. If the DLL project is not referenced by the EXE project, then you can add an explicit build dependency by right-clicking on the solution and picking Project Dependencies
from the context menu. This lets you specify build dependencies before a given project build (in addition to relationships implied though project references).
add a comment |
VS should build any projects that it recognizes as out of date. If the DLL project is not referenced by the EXE project, then you can add an explicit build dependency by right-clicking on the solution and picking Project Dependencies
from the context menu. This lets you specify build dependencies before a given project build (in addition to relationships implied though project references).
add a comment |
VS should build any projects that it recognizes as out of date. If the DLL project is not referenced by the EXE project, then you can add an explicit build dependency by right-clicking on the solution and picking Project Dependencies
from the context menu. This lets you specify build dependencies before a given project build (in addition to relationships implied though project references).
VS should build any projects that it recognizes as out of date. If the DLL project is not referenced by the EXE project, then you can add an explicit build dependency by right-clicking on the solution and picking Project Dependencies
from the context menu. This lets you specify build dependencies before a given project build (in addition to relationships implied though project references).
answered Nov 21 '18 at 4:52
Jimmy
18.7k26279
18.7k26279
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403553%2fvs2017-build-all-solutions-when-pressing-f5-buy-only-execute-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you try set as startup project? you can set as startup project by right click on your project
– SlaneR
Nov 21 '18 at 0:26
My .exe project is the startup project, but I want visual studio to compile the DLL before starting the .exe(the startup project)
– David
Nov 21 '18 at 0:33
Do you have the DLL project added as a dependency? Or do you just have the DLL file itself.
– Dietrich Epp
Nov 21 '18 at 0:44
That was the issue, thanks. I completly forgot about that.
– David
Nov 21 '18 at 1:31