Groups | Blog | Home
all groups > dotnet framework > february 2006 >

dotnet framework : Automated Refactoring w/ CodeDom and VBCodeProvider...



jack
2/5/2006 10:07:33 PM
Trying to make a utility that

- Reads a VB.Net source file
- Parses it into it's constuent parts
- Evaluates and modifies as required
- Saves the source

I thought that the CodeDom and the VBCodeProvider would be the way to
go.

I can gen code and compile it, but I can not figure out how to parse a
VB.Net file into a CodeCompileUnit. (Neither CreateParser or Parse
seems to work)

How to I read a VB.Net source file into theee code dom so that I can
progaramatically inspect it.

Am I going down the wrong path?

Jack Stephenson
Oleg Zherebin
2/6/2006 12:00:00 AM
Look #d sources. It has some refactoring support.

[quoted text, click to view]

AddThis Social Bookmark Button