Hi Spartan080
This error generally is generated when the previous exe that was created from the previous build was not deleted automatically form the bin folder . . .
Try clicking, Build - Clean, then try compiling your project again . . .
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do you fix a problem where the program cannot find the file for the project when compiling. The setup was default and should be found by Visual Studio, but I get an message box about this. There is no problem with the code, just can't seem to find the file. I can pull the file up manually, but would like to know how to fix this issue please.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi Spartan080
This error generally is generated when the previous exe that was created from the previous build was not deleted automatically form the bin folder . . .
Try clicking, Build - Clean, then try compiling your project again . . .
DaveM121,
Thank you for getting back to me so quickly. I went to build, clean and then tried to build again, but no joy. When trying to run without debugging or with, it gives the same message box. Anything else you think I should try?
Hi Spartan080
What type of coding project (WinForms, WPF . . etc) in Visual Studio are you working on?
What is the exact error you are seeing when you go to compile your project - a screenshot would really help to diagnose this error . . .
Hi Spartan080
HelloWorld - that is where we all started . . .
At the top of you code add this line, after the include <windows.h> statement:
using namespace std;
Then try to compile your project . . .
If that does not resolve this:
If you manually go into the Debug folder delete Project1.exe and then compile your project, does it execute?
If not, then you anti-virus is not allowing that to run, temporarily stop whatever anti-virus (Defender or 3rd party AV) and see if you can compile and execute your project . . .