Automatic code compiler released!

Posts   
 
    
MacDennis avatar
MacDennis
User
Posts: 50
Joined: 03-May-2005
# Posted on: 27-Sep-2005 22:19:30   

Grab it here: http://www.mainframe.demon.nl/SourcecodeCompiler.zip

Please post your experiences in this thread. I hope that this little program will be of some use.

From the readme ..

Automatic code compiler taskperformer

Release date: 27-sep-2005 Released by: Dennis Velthuis, Webcontent Version: 1.0.2005.2

Changes

Information

This taskperformer can be used to automatically compile your generated code after the code generation process has finished.

The supplied generator configuration files can be used stand alone for compilation. You could also copy the contents of these files to an existing generator configuration file. This way, the generation and compilation of the code will be done in one batch.

This taskperformer should be used with the latest LLBLGen Pro Beta!

How to use

  • Copy the contents of the bin folder and the .config files to the TaskPerformers directory of your LLBLGen Pro (beta) installation directory.
  • Change the 'runtimeLibrariesFolder' parameter if needed (see below).
  • Generate your code.
  • Choose either the 'Adapter, compiler' or the 'Selfservicing, compiler' generator configuration to compile your code.

Generator config parameters

sourceFolder* : source code root folder vsProjectFile* : vs.net project filename destinationFolder* : compiled dll destination folder outputFile* : compiled dll filename logFile* : log filename runtimeLibrariesFolder : location of runtime libraries, change to your current situation optimize : perform optimization, allowed values: true/false (default is true) reference : can be used to override the automatically generated reference list imports : can be used to override the automatically generated imports list additionalArguments : additional arguments for the compiler cancelTimer : number of milliseconds after which compiler process is cancelled

  • required parameter

Generator config placeholders

[dbspecificSubFolder] : equal to AdapterDbSpecificProjectFileSuffix [dbspeficSuffix] : equal to AdapterDbSpecificNamespaceSuffix [dbgenericSubFolder]: equal to AdapterDbGenericProjectFileSuffix [dbgenericSuffix] : equal to AdapterDbGenericNamespaceSuffix [rootNameSpace] : equal to RootNamespace [extension] : equal to "vb" or "cs" depending on chosen template set

The original values are specified in the project properties window.

Problems?

  • Check if the 'runtimeLibrariesFolder' points to the corect path.
  • Check the application output window for clues.
  • Check the generated log file.
  • Visit the forums.

Tested with

LLBLGenPro 1.2005.1 Beta (25 September 2005) Adapter & selfservicing scenario's VB.NET & C# SQL Server

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 03-Oct-2005 12:14:10   

Cool stuff! I'll add it to the 3rd party section simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 04-Oct-2005 13:52:32   

I was looking through the email prior to uploading the stuff, and I noticed this:

This taskperformer should be used with the latest LLBLGen Pro Beta!

does this mean it doesn't work with the 1.0.2004.2 version? I peeked inside the code, but I couldn't really find any thing that shouldn't work with the older version, or does the person have to recompile the sourcecode before using it for 1.0.2004.2?

Frans Bouma | Lead developer LLBLGen Pro
MacDennis avatar
MacDennis
User
Posts: 50
Joined: 03-May-2005
# Posted on: 04-Oct-2005 15:16:30   

Otis wrote:

does this mean it doesn't work with the 1.0.2004.2 version? I peeked inside the code, but I couldn't really find any thing that shouldn't work with the older version, or does the person have to recompile the sourcecode before using it for 1.0.2004.2?

I have only tested it with 1.0.2004.2 briefly. Yes, it does work but you will need to recompile the project against the 1.0.2004.2 libraries. The libraries SD.LLBLGen.Pro.GeneratorCore.dll and SD.LLBLGen.Pro.ApplicationCore.dll to be exact.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 05-Oct-2005 11:36:03   

MacDennis wrote:

Otis wrote:

does this mean it doesn't work with the 1.0.2004.2 version? I peeked inside the code, but I couldn't really find any thing that shouldn't work with the older version, or does the person have to recompile the sourcecode before using it for 1.0.2004.2?

I have only tested it with 1.0.2004.2 briefly. Yes, it does work but you will need to recompile the project against the 1.0.2004.2 libraries. The libraries SD.LLBLGen.Pro.GeneratorCore.dll and SD.LLBLGen.Pro.ApplicationCore.dll to be exact.

Ok. simple_smile I'll upload the sourcecode then, with the remark that people have to compile it with the proper assemblies to get it working.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 05-Oct-2005 11:42:22   

Added simple_smile

Frans Bouma | Lead developer LLBLGen Pro