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

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>
'------------------------------------------------------------------------------
 
C

Cowboy \(Gregory A. Beamer\)

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!
|
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top