Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > General > General Chat> Modifying csproj or vbproj files like LLBLGen
 

Pages: 1
General Chat
Modifying csproj or vbproj files like LLBLGen
Page:1/1 

  Print all messages in this thread  
Poster Message
alexdresko
User



Location:
Greenville, SC
Joined on:
08-Jun-2004 17:30:02
Posted:
336 posts
# Posted on: 07-Jan-2008 20:55:50.  
Hi Frans,

Hopefully, you'll see the post even though it's in the General Chat forum.

Anyway, I have a need to create an application that will add/remove files from a vbproj or csproj file. Since LLBLGen does this really well, I was curious what technique you use.

Do you open the file as XML and modify it that way? Or do you use a token based approach with LLBLGen's built in code generator? Or maybe you use the DTE automation objects? etc....

Thanks for the tip!
I'm not a player, I just code a lot.   Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37377 posts
# Posted on: 08-Jan-2008 09:24:29.  
alexdresko wrote:
Hi Frans,

Hopefully, you'll see the post even though it's in the General Chat forum.

Anyway, I have a need to create an application that will add/remove files from a vbproj or csproj file. Since LLBLGen does this really well, I was curious what technique you use.

Do you open the file as XML and modify it that way? Or do you use a token based approach with LLBLGen's built in code generator? Or maybe you use the DTE automation objects? etc....

Thanks for the tip!

Download the SDK sourcecode and you'll know it Laugh

It's done using XML. I load the project file as XML into an XML dom and then find the parent element for the files, then clear it and add new nodes to it Regular Smiley


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.