How to get rid of the Autogenerated code while generating codethrough CodeDOM

  • Thread starter Thread starter maarif
  • Start date Start date
M

maarif

Hi,
I am using Microsoft CodeDOM to generate VB.NET code for one of my
application. For this purpose, when give the call to
GenerateCodeFromCompileUnit() method of ICodeGenerator class, it
generates the following comment header automatically in the generated
code file.

I don't want these comments in my code, how can I get rid of it?

'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.42
'
' Changes to this file may cause incorrect behavior and will be
lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
 
I do not believe it is templated, so there is no way. You can go through the
file and clean up comments (or just head comments) if you would like.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
 
Back
Top