Program2.cs represents Generated Code. I want to achieve this: * Do not compile Program.cs * Enable Intelisense on Program.cs. In general treat it as if it was Compiled during design time * Program2.cs should not be referenceable from other Code.
Redirecting the Debugger from Program2.cs to Program.cs using
#line
#line
directives already works.
How can this be achieved? I think it may be possible using some Condition for Design/Compile-Time or using Targets.