Is there a way to remove elements in code generated in Codedom from VB code?
For example, at the top of all the code that I generate, it has:
'------------------------------------------------- -----------------------------
''
'This code was generated by a tool.
'Runtime Version: 4.0.30319.1
''
'Changes to this file may cause incorrect behavior and will be lost if
'the code is regenerated.
''
'------------------------------------------------- -----------------------------
Option Strict Off
Option Explicit On
I would like both of them to leave - comment and text Option xxx. I tried combining with CodeGeneratorOptions, but could not remove the above from the generated code.
source
share