generated files from ANTLR conflict in visual studio between release and debug modes
<p>I use <code>ANTLR4</code> with <code>Visual Studio</code> and <code>C#</code>. During the build process the <code>ANTLR4</code> tool generates 6 <code>C#</code> source files (i.e Parser, Lexer, Visitor, Listener etc) that correspond to the parser the <code>ANTLR</code> generates. This files are generated in the obj/Debug directory of the project (assuming that Debug mode is chosen). I add these files as links in the solution explorer for inspecting the generated code.</p>

<p>If i try to change to release mode <code>ANTLR4</code> generates the same files in obj/Release directory of the project and these files are in conflict (dublicate classes in the same namespace) with the files produced in obj/Debug directory.</p>

<p><strong>The question is:</strong></p>

<p>When I am in release mode having done the aforementioned actions, Is there any way to exclude generated files in the solution explorer from debug mode (while on release mode) or I have to manually exclude the obj/Debug directory from the solution explorer in order to avoid conflict?</p>

<p>Thanks in advance</p>