E
E
eRKa2015-12-23 18:52:37
.NET
eRKa, 2015-12-23 18:52:37

.exe file does not start from Debug, vs?

I am creating a console application. In debug mode in VS it starts up and works fine. I'm trying to launch the executable from Debug - it freezes, not reaching the launch of the console. And the previous console projects are normally started. And from some point (I noticed this week when the need to add a new project to the solution came up) it stopped working. Doesn't throw any errors. After trying to launch the application from the executable, it's clear that VS stops running, says that the file is busy with another process. Those processes that I find and kill do not solve the problem, only restarting the computer for now.
Already looked through everything I could, all the properties, settings - I did not find anything.
Any ideas what could be the problem? Tired of googling.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ai Lab, 2015-12-24
@kttotto

This is all an antivirus program, after adding new parts to the project, the final exe became suspicious for him for some reason and he began to hammer it, this happens. You need to add the folder to the exclusions

D
Dmitry Kovalsky, 2015-12-23
@dmitryKovalskiy

Build the project in the Release configuration and run from a different directory.

M
Melz, 2015-12-24
@melz

Try removing everything from the obj folder and recompile.
You also need to kill my-prog.vshost.exe.
You can also play around with the checkbox of the Host Process / Hosting Process
Project - Properties - Debug - Enable the Visual Studio hosting process.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question