Home > OS >  Visual Studio project doesn't compile when deleting a reference but the built EXE file runs wit
Visual Studio project doesn't compile when deleting a reference but the built EXE file runs wit

Time:02-03

  1. I have created .NET 4.7.2 project and now refactoring and removing unused libraries.

  2. By exe I mean successfully compiled exe file.

CodePudding user response:

Try To Delete Bin Folder From your Project Path

CodePudding user response:

There is a couple possibilities:

First: Compiled Exe didn't use the .dll at all as you said, so no piece of code will produce an exception because there's no call to that library inside it.

Second: Actually, the dll is somewhere in your computer registered and the exe is accessing it witouth any problem

I would bet on first possibility

  •  Tags:  
  • Related