I'm working on a multi-project solution in VS 2015. One of the projects is foo.System
, which you may have noticed creates some potential confusion between that and, y'know, System
. This is causing issues in the Component Designer generated code when something like
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
gives the error The type or namespace name 'ServiceProcess' does not exist in the namespace 'Tapestry.System'
because the compiler then looks for ServiceProcess in foo.System
instead of System
.
Obviously I can edit the generated code to clarify (as explained in the answers in this related question), but those changes will get overwritten next time the code is generated. Is there any way to fix this short of insisting to my boss that we rename foo.System
?