D
D
dmasloff2020-05-21 19:16:26
visual studio
dmasloff, 2020-05-21 19:16:26

Why does VS run the first file from a project?

Pressing F5 in Visual Studio starts executing the first file created in this project, which is not even open in the application itself. I myself do not write any big programs, but solve programming problems; in connection with which the question is: is it possible to somehow fix this or rewrite tasks in the same file, or to create new projects in VS to test them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-05-21
@firedragon

Right-click on the project "Make this project the default project"
It is the project that is not resolved

S
Stanislav Makarov, 2020-05-21
@Nipheris

RMB on the project in Solution Explorer -> Set as StartUp Project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question