Rss 2.0 via FEED

About...

Quick update on the TaHoGen open source project...

I just tidied up the whole source tree, added all the projects in a logical layout to one solution. I also sorted out the Visual Studio addin with better error handling and added a Setup project so that it can be easily installed by an end user.

Murad's excellent SchemaBrowser was added added and checked in, now allowing us to glean data from databases to use in the code generation. We're closing in on CodeSmith...

Next step is to demonstrate use by including a number of templates.


The problem with the addin (that was so difficult to remedy) was MDA's - difficult to troubleshoot and even more difficult to fix.

When the addin is called by VS it tries to save a reference to the instance of VS that is creating it - this is so we can get a handle on the OutputWindow and add some new panes to it.

These sometimes (intermittently) get blocked by MDA's and the panes do not get created - the panes only show build output text so I added some error handling to continue processing even if we cannot write to the pane.

Anyway, if you want to take it for a test run, you can get it here.

Share/Bookmark

Posted: Thursday, September 28, 2006 10:49:02 PM (GMT Daylight Time, UTC+01:00)  #   Comments [7]
TAGS: .NET | C Sharp | Code Generation | Development | Software | TaHoGen
Tuesday, October 28, 2008 5:06:05 PM (GMT Standard Time, UTC+00:00)
Where can we find the source code and documents?
Bari
Tuesday, October 28, 2008 5:07:33 PM (GMT Standard Time, UTC+00:00)
Where can we find the source code and documents? SOurceForge only allows us to download the installation package.
Bari
Tuesday, October 28, 2008 9:22:09 PM (GMT Standard Time, UTC+00:00)
Bari,

You can grab the source from the SourceForge SVN repository (although you'll need an SVN client)
You can browse the source repository here : TahoGen Source

Let me how it goes...

.. KJ
Wednesday, October 29, 2008 2:18:31 PM (GMT Standard Time, UTC+00:00)
Got it. Thanks.
Any documents on how to use the Add-in with visual studio?
Bari
Wednesday, October 29, 2008 6:12:14 PM (GMT Standard Time, UTC+00:00)
The sample SchemaBrowser.Test in the code is not working.
After fixing the compilation error and running the sample, it did not compile the Entity.txt resource file correctly.
<script runat="template"> was parsed as a Text Literal. Changing the code in LiteralTextBlockParser from:
Parser invalidBlock = new StringParser("<%") | new IncludeBlockParser()
to:
Parser invalidBlock = new StringParser("<%") | new IncludeBlockParser() | new ScriptBlockParser();
Did not work either.

Do you now where I can find the code for NDescent2? Thanks

Bari
Wednesday, October 29, 2008 9:16:54 PM (GMT Standard Time, UTC+00:00)
Bari,

It's been a good 2 years since I looked at the code for this....
The NDescent source should be in the svn repository also - look under TahoGen4\Parsers...

Not sure about the errors you mention - one issue I do recall (that might be related / useful) was that script block openers ( <% ) could not be on the same line as any code...

Hope this helps .. KJ
Wednesday, October 29, 2008 9:24:12 PM (GMT Standard Time, UTC+00:00)
Hey Bari - have you looked at T4 yet - it has apparently been in Visual Studio for a while now and Microsoft are just starting to publicise it...

Try this link

..KJ
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
Copyright © 2010 Ken Hughes. All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.