Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Designer> Saving new present causes an exception?
 

Pages: 1
Designer
Saving new present causes an exception?
Page:1/1 

  Print all messages in this thread  
Poster Message
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 16-Jun-2008 15:36:01.  
Hi all,

I have a bit of an issue with the designer - I've added my own tasks to the preset, but I received the following exception below when I tried to save the preset:

Code:
Unable to cast object of type 'SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskGroupPreset' to type 'SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskPreset'.

-----[Core exception]--------------------
at SD.LLBLGen.Pro.ApplicationCore.Tasks.Preset.ApplyPresetOnTaskGroup(TaskGroupPreset presetElement, TaskGroup toModify, TaskManager tasks, String platformName, String templateGroupName)
at SD.LLBLGen.Pro.ApplicationCore.Tasks.Preset.CreateRunnableTaskGroupElement(TaskGroupPreset presetElement, TaskManager tasks, String platformName, String templateGroupName)
at SD.LLBLGen.Pro.ApplicationCore.Tasks.Preset.CreateRunnableElement(TaskGroupPresetElement presetElement, TaskManager tasks, String platformName, String templateGroupName)
at SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskManager.FillTaskGroupWithPresetSettings(TaskGroup container, Preset toApply, String platformName, String templateGroupName)
at SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskManager.CreateRunQueueFromPreset(Preset toApply, String platformName, String templateGroupName)
at SD.LLBLGen.Pro.Gui.Forms.CodeGenerationConfigurator.SaveCurrentRunQueueAsPreset(Boolean performSaveAs)
at SD.LLBLGen.Pro.Gui.Forms.CodeGenerationConfigurator._savePresetAsButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




I generated the code once. However, subsequently when I try to access the generate menu, I'm also getting the exception above! I couldn't generate the code until I cleared out the preset I saved.

Any ideas why my tasks would cause this? The code generates fine... running v2.5, April 23rd build.
  Top
goose
User



Location:
Central America
Joined on:
06-Aug-2007 18:21:05
Posted:
385 posts
# Posted on: 16-Jun-2008 16:59:37.  
Hi,
Quote:
I've added my own tasks to the preset
could you provide more details about your implementation?


gansodesoya  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 16-Jun-2008 23:54:14.  
goose wrote:
Hi,
Quote:
I've added my own tasks to the preset
could you provide more details about your implementation?



Sure:

TemplateBinding

Code:

<?xml version="1.0" encoding="utf-8"?>
<templateBindings name="mycompany myproduct Entity DTO" description="" precedenceLevel="10" databaseDriverID="" xmlns="http://sd/llblgen/pro/templateBindingsDefinition.xsd">
    <supportedPlatforms>
        <platform name=".NET 2.0" />
        <platform name=".NET 3.0" />
        <platform name=".NET 3.5" />
    </supportedPlatforms>
    <language name="VB.NET">
        <templateBinding templateID="DTO" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\DTO.Template" templateLanguage="TDL" />
        <templateBinding templateID="DTOCollection" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\DTOCollection.Template" templateLanguage="TDL" />
        <templateBinding templateID="Projector" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\Projector.Template" templateLanguage="TDL" />
        <templateBinding templateID="VsNet2008Template" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\vsnet2008ProjectFile.template" templateLanguage="TDL" />
        <templateBinding templateID="BaseDTO" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\BaseDTO.Template" templateLanguage="TDL" />
        <templateBinding templateID="BaseDTOCollection" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\BaseDTOCollection.Template" templateLanguage="TDL" />
        <templateBinding templateID="BaseProjector" filename="..\AdditionalTemplates\mycompany\myproduct\Net2.x\VB.NET\BaseProjector.Template" templateLanguage="TDL" />
    </language>
</templateBindings>


Templates: \AdditionalTemplates\MyCompany\MyProduct\Net2.x\VB.NET

Task File
Code:

<?xml version="1.0" ?>
<taskGroup xmlns="http://sd/llblgen/pro/taskGroupElementDefinitions.xsd" name="DTO Templates" isOptional="false" description="General group of tasks which are used DTO templates.">
<supportedPlatforms>
    <platform name=".NET 2.0" />
    <platform name=".NET 3.0" />
    <platform name=".NET 3.5" />
</supportedPlatforms>
<!--<supportedTemplateGroups>
        <templateGroup name="Adapter" />
    </supportedTemplateGroups>-->
<taskGroup name="Create Directories">
    <task name="Create mycompany.myproduct.DAL.DTO Directory" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.DirectoryCreator">
     <parameters>
        <parameter name="folderToCreate" defaultValue="mycompany.myproduct.DAL.DTO" isOptional="false" description="The folder to create" />
        <parameter name="failWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal what to do when the folder already exists. Overrules clearWhenExistent" valueType="boolean" />
        <parameter name="clearWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal if an existing folder has to be cleared first. Overruled by failWhenExistent" valueType="boolean" />
     </parameters>
    </task>
    <task name="Create mycompany.myproduct.DAL Directory" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.DirectoryCreator">
     <parameters>
        <parameter name="folderToCreate" defaultValue="mycompany.myproduct.DAL" isOptional="false" description="The folder to create" />
        <parameter name="failWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal what to do when the folder already exists. Overrules clearWhenExistent" valueType="boolean" />
        <parameter name="clearWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal if an existing folder has to be cleared first. Overruled by failWhenExistent" valueType="boolean" />
     </parameters>
    </task>
    <task name="Create mycompany.myproduct.DAL.Projectors Directory" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.DirectoryCreator">
     <parameters>
        <parameter name="folderToCreate" defaultValue="mycompany.myproduct.DAL\Projectors" isOptional="false" description="The folder to create" />
        <parameter name="failWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal what to do when the folder already exists. Overrules clearWhenExistent" valueType="boolean" />
        <parameter name="clearWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal if an existing folder has to be cleared first. Overruled by failWhenExistent" valueType="boolean" />
     </parameters>
    </task>
</taskGroup>
<taskGroup name="Create DTO Classes" description="Create DTO Classes">
        <task name="Create Base DTO Class" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL.DTO" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="BaseDTO.[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="BaseDTO" />
        <parameter isOptional="false" name="emitType" defaultValue="generic" />
     </parameters>
    </task>
        <task name="Create Base DTO Collection Class" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL.DTO" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="BaseDTOCollection.[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="BaseDTOCollection" />
        <parameter isOptional="false" name="emitType" defaultValue="generic" />
     </parameters>
    </task>
    <task name="Create DTO Classes" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL.DTO" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="[elementName].[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="DTO" />
        <parameter isOptional="false" name="emitType" defaultValue="allEntities" />
     </parameters>
    </task>
    <task name="Create DTO Collection Classes" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL.DTO" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="[elementName]s.[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="DTOCollection" />
        <parameter isOptional="false" name="emitType" defaultValue="allEntities" />
     </parameters>
    </task>
    <task name="Create AssemblyInfo" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter" description="Generates the assemblyinfo class" isOptional="true">
     <supportedPlatforms/>
     <supportedTemplateGroups/>
     <dependencies/>
     <parameters>
        <parameter name="destinationFolder" defaultValue="mycompany.myproduct.DAL.DTO" isOptional="false" description="The folder to generate the code in"/>
        <parameter name="filenameFormat" defaultValue="AssemblyInfo.[extension]" isOptional="false" description="The destination file format specification"/>
        <parameter name="templateID" defaultValue="SD_AssemblyInfoTemplate" isOptional="false" description="The ID of the template to use." valueType="templateID"/>
        <parameter name="emitType" defaultValue="generic" isOptional="false" description="The type of code generation to perform." valueType="emitType"/>
        <parameter name="templateBindingDefinitionName" defaultValue="" isOptional="true" description="The name of the TemplateBindings from which to pick the templateID specified. Specifying this parameter will always force the templateID to be picked from the templateBindings with the name specified."/>
        <parameter name="failWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal what to do when the destination file already exists." valueType="boolean"/>
     </parameters>
    </task>
    <task name="Create DTO Project" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.ProjectFileCreator">
     <parameters>
        <parameter name="destinationFolder" defaultValue="" isOptional="false" description="The folder to generate the project file in, relative to the destination root folder."/>
        <parameter name="filenameFormat" defaultValue="[projectName].[extension]proj" isOptional="false" description="The project filename format specification."/>
        <!--<parameter name="templateID" defaultValue="SD_VsNet2005Template" isOptional="false" description="The ID of the template to use for the VS.NET project file" valueType="templateID"/>-->
        <parameter name="templateID" defaultValue="VsNet2008Template" isOptional="false" description="The ID of the template to use for the VS.NET project file" valueType="templateID"/>
        <parameter name="useRootNameSpaceForProjectName" defaultValue="false" isOptional="false" description="Flag to signal if the rootnamespace specified should be used for the project name. If set to false, the property projectName has to be specified with the value to use for project name." valueType="boolean"/>
        <parameter name="alterWhenExistent" defaultValue="true" isOptional="true" description="Flag to signal if an existing project file should be altered or should be left alone." valueType="boolean"/>
        <parameter name="binRootFolder" defaultValue="mycompany.myproduct.DAL.DTO\bin" isOptional="true" description="The name of the root folder, relative to the destination root folder, where VS.NET should store the output folders like bin\debug."/>
        <parameter name="clearFileCacheAfterwards" defaultValue="true" isOptional ="true" description="Flag to signal if the filename cache has to be cleared after this task has been run succesfully." valueType="boolean"/>
        <parameter name="templateBindingDefinitionName" defaultValue="" isOptional="true" description="The name of the TemplateBindings from which to pick the templateID specified. Specifying this parameter will always force the templateID to be picked from the templateBindings with the name specified."/>
        <parameter name="projectName" defaultValue="mycompany.myproduct.DAL.DTO" isOptional="true" description="The name to use for the project if useRootNameSpaceForProjectName is set to false or left empty. If projectName has been left empty, the ProjectName property value of the LLBLGen Pro project is used instead, if useRootNameSpaceForProjectname is set to false or left empty."/>
     </parameters>
    </task>
</taskGroup>
<taskGroup name="Create DAL Classes" description="Create Projector Classes">
    <task name="Create Base Projector Class" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL\Projectors" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="BaseProjector.[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="BaseProjector" />
        <parameter isOptional="false" name="emitType" defaultValue="generic" />
     </parameters>
    </task>
    <task name="Create Projector Classes" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
     <parameters>
        <parameter isOptional="false" name="destinationFolder" defaultValue="mycompany.myproduct.DAL\Projectors" />
        <parameter isOptional="false" name="failWhenExistent" defaultValue="false" />
        <parameter isOptional="false" name="filenameFormat" defaultValue="[elementName]Projector.[extension]" />
        <parameter isOptional="false" name="templateID" defaultValue="Projector" />
        <parameter isOptional="false" name="emitType" defaultValue="allEntities" />
     </parameters>
    </task>
    <task name="Create AssemblyInfo" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter" description="Generates the assemblyinfo class" isOptional="true">
     <supportedPlatforms/>
     <supportedTemplateGroups/>
     <dependencies/>
     <parameters>
        <parameter name="destinationFolder" defaultValue="mycompany.myproduct.DAL" isOptional="false" description="The folder to generate the code in"/>
        <parameter name="filenameFormat" defaultValue="AssemblyInfo.[extension]" isOptional="false" description="The destination file format specification"/>
        <parameter name="templateID" defaultValue="SD_AssemblyInfoTemplate" isOptional="false" description="The ID of the template to use." valueType="templateID"/>
        <parameter name="emitType" defaultValue="generic" isOptional="false" description="The type of code generation to perform." valueType="emitType"/>
        <parameter name="templateBindingDefinitionName" defaultValue="" isOptional="true" description="The name of the TemplateBindings from which to pick the templateID specified. Specifying this parameter will always force the templateID to be picked from the templateBindings with the name specified."/>
        <parameter name="failWhenExistent" defaultValue="false" isOptional="true" description="Flag to signal what to do when the destination file already exists." valueType="boolean"/>
     </parameters>
    </task>
    <task name="Create DAL Project" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.ProjectFileCreator">
     <parameters>
        <parameter name="destinationFolder" defaultValue="" isOptional="false" description="The folder to generate the project file in, relative to the destination root folder."/>
        <parameter name="filenameFormat" defaultValue="[projectName].[extension]proj" isOptional="false" description="The project filename format specification."/>
        <!--<parameter name="templateID" defaultValue="SD_VsNet2005Template" isOptional="false" description="The ID of the template to use for the VS.NET project file" valueType="templateID"/>-->
        <parameter name="templateID" defaultValue="VsNet2008Template" isOptional="false" description="The ID of the template to use for the VS.NET project file" valueType="templateID"/>
        <parameter name="useRootNameSpaceForProjectName" defaultValue="false" isOptional="false" description="Flag to signal if the rootnamespace specified should be used for the project name. If set to false, the property projectName has to be specified with the value to use for project name." valueType="boolean"/>
        <parameter name="alterWhenExistent" defaultValue="true" isOptional="true" description="Flag to signal if an existing project file should be altered or should be left alone." valueType="boolean"/>
        <parameter name="binRootFolder" defaultValue="mycompany.myproduct.DAL\bin" isOptional="true" description="The name of the root folder, relative to the destination root folder, where VS.NET should store the output folders like bin\debug."/>
        <parameter name="clearFileCacheAfterwards" defaultValue="true" isOptional ="true" description="Flag to signal if the filename cache has to be cleared after this task has been run succesfully." valueType="boolean"/>
        <parameter name="templateBindingDefinitionName" defaultValue="" isOptional="true" description="The name of the TemplateBindings from which to pick the templateID specified. Specifying this parameter will always force the templateID to be picked from the templateBindings with the name specified."/>
        <parameter name="projectName" defaultValue="mycompany.myproduct.DAL" isOptional="true" description="The name to use for the project if useRootNameSpaceForProjectName is set to false or left empty. If projectName has been left empty, the ProjectName property value of the LLBLGen Pro project is used instead, if useRootNameSpaceForProjectname is set to false or left empty."/>
     </parameters>
    </task>
</taskGroup>
</taskGroup>
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14462 posts
# Posted on: 17-Jun-2008 12:12:10.  
That's a task file not a preset file.

Please check the "<LLBLGen installation folder>\Tasks" folder for he difference between contents and tags of a task file and those of a preset file.


  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 17-Jun-2008 19:19:17.  
Walaa wrote:
That's a task file not a preset file.

Please check the "<LLBLGen installation folder>\Tasks" folder for he difference between contents and tags of a task file and those of a preset file.



Hello Waala,

I am not manually creating a preset file, rather I used the "Save as" function to let LLBLGen create a preset. This preset that LLBLGen creates seems to be causing the crash.

Heres it the preset generated by LLBLGen:

Code:

<?xml version="1.0" encoding="utf-8"?>
<preset name="mycompany.myproduct.Presets.Adapter.General2008.DTO" lastModifiedOn="2008-06-17T12:58:44.203125-04:00" createdBy="mshe" isSealed="true" xmlns="http://sd/llblgen/pro/presetElementDefinitions.xsd">
<supportedPlatforms>
    <platform name=".NET 3.5" />
</supportedPlatforms>
<supportedTemplateGroups>
    <templateGroup name="Adapter" />
</supportedTemplateGroups>
<taskPresets>
    <taskGroupPreset name="DTO Templates">
     <taskGroupPreset name="Create Directories">
        <taskPreset name="Create mycompany.myproduct.DAL.DTO Directory" />
        <taskPreset name="Create mycompany.myproduct.DAL Directory" />
        <taskPreset name="Create mycompany.myproduct.DAL.Projectors Directory" />
     </taskGroupPreset>
     <taskGroupPreset name="Create DTO Classes">
        <taskPreset name="Create Base DTO Class" />
        <taskPreset name="Create Base DTO Collection Class" />
        <taskPreset name="Create DTO Classes" />
        <taskPreset name="Create DTO Collection Classes" />
        <taskPreset name="Create AssemblyInfo">
         <parameters>
            <parameter name="destinationFolder" value="mycompany.myproduct.DAL.DTO" />
         </parameters>
        </taskPreset>
        <taskPreset name="Create DTO Project" />
     </taskGroupPreset>
     <taskGroupPreset name="Create DAL Classes">
        <taskPreset name="Create Base Projector Class" />
        <taskPreset name="Create Projector Classes" />
        <taskPreset name="Create AssemblyInfo" />
        <taskPreset name="Create DAL Project" />
     </taskGroupPreset>
    </taskGroupPreset>
    <taskGroupPreset name="SD.Tasks.Adapter.DatabaseGeneric">
     <taskPreset name="SD.Tasks.Adapter.DbGenericProjectDirectoryCreator" />
     <taskGroupPreset name="SD.Tasks.Generic.DirectoryCreators">
        <taskPreset name="SD.Tasks.Generic.EntityClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\EntityClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.FactoryClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\FactoryClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.HelperClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\HelperClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.RelationClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\RelationClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.TypedListClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\TypedListClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.TypedViewClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\TypedViewClasses" />
         </parameters>
        </taskPreset>
        <taskPreset name="SD.Tasks.Generic.ValidatorClassesDirectoryCreator">
         <parameters>
            <parameter name="folderToCreate" value="[dbgenericSubFolder]\ValidatorClasses" />
         </parameters>
        </taskPreset>
     </taskGroupPreset>
     <taskPreset name="SD.Tasks.Adapter.EntityCollectionClassGenerator" />
     <taskPreset name="SD.Tasks.Generic.AssemblyInfoFileGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]" />
         <parameter name="failWhenExistent" value="true" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.ConstantsEnumsFileGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.FieldInfoProviderClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\HelperClasses" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.TypeDefaultValueClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\HelperClasses" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.InheritanceInfoProviderClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\HelperClasses" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.EntityRelationsClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\RelationClasses" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Adapter.CommonBaseClassGenerator" />
     <taskPreset name="SD.Tasks.Generic.EntityClassesGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\EntityClasses" />
         <parameter name="templateID" value="SD_EntityAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.EntityFactoryClassesGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\FactoryClasses" />
         <parameter name="templateID" value="SD_EntityFactoriesAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.EntityFieldFactoryClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\FactoryClasses" />
         <parameter name="templateID" value="SD_EntityFieldFactoryAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.EntityFieldsFactoryClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\FactoryClasses" />
         <parameter name="templateID" value="SD_EntityFieldsFactoryAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.PredicateFactoryClassGenerator" isEnabled="false">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\FactoryClasses" />
         <parameter name="templateID" value="SD_PredicateFactoryAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.SortClauseFactoryClassGenerator" isEnabled="false">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\FactoryClasses" />
         <parameter name="templateID" value="SD_SortClauseFactoryAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.ResultsetFieldsClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\HelperClasses" />
         <parameter name="templateID" value="SD_ResultsetFieldsAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.FieldCreationClassesGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\HelperClasses" />
         <parameter name="templateID" value="SD_FieldCreationClassesAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.TypedListClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\TypedListClasses" />
         <parameter name="templateID" value="SD_TypedListAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.TypedViewClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\TypedViewClasses" />
         <parameter name="templateID" value="SD_TypedViewAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Adapter.Webservices.WebserviceHelperClassGenerator" isEnabled="false" />
     <taskPreset name="SD.Tasks.Generic.ValidatorClassesGenerator" isEnabled="false">
        <parameters>
         <parameter name="destinationFolder" value="[dbgenericSubFolder]\ValidatorClasses" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Adapter.VsNetDbGenericProjectFileCreator">
        <parameters>
         <parameter name="templateID" value="SD_VsNet2008AdapterTemplate" />
        </parameters>
     </taskPreset>
    </taskGroupPreset>
    <taskGroupPreset name="SD.Tasks.Adapter.DatabaseSpecific">
     <taskPreset name="SD.Tasks.Adapter.DbSpecificProjectDirectoryCreator" />
     <taskPreset name="SD.Tasks.Generic.AssemblyInfoFileGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbspecificSubFolder]" />
         <parameter name="failWhenExistent" value="true" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.PersistenceInfoProviderClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbspecificSubFolder]" />
         <parameter name="templateID" value="SD_PersistenceInfoProviderAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.AppConfigFileGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbspecificSubFolder]" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.ActionProceduresClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbspecificSubFolder]" />
         <parameter name="templateID" value="SD_ActionProceduresAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Generic.RetrievalProceduresClassGenerator">
        <parameters>
         <parameter name="destinationFolder" value="[dbspecificSubFolder]" />
         <parameter name="templateID" value="SD_RetrievalProceduresAdapterTemplate" />
        </parameters>
     </taskPreset>
     <taskPreset name="SD.Tasks.Adapter.DataAccessAdapterClassGenerator" />
     <taskPreset name="SD.Tasks.Adapter.VsNetDbSpecificProjectFileCreator">
        <parameters>
         <parameter name="templateID" value="SD_VsNet2008DBSpecificAdapterTemplate" />
        </parameters>
     </taskPreset>
    </taskGroupPreset>
    <taskGroupPreset name="SD.Tasks.Adapter.Webservices.SchemaImporter">
     <taskPreset name="SD.Tasks.Adapter.Webservices.SchemaImporter.DirectoryCreator" isEnabled="false" />
     <taskPreset name="SD.Tasks.Adapter.Webservices.SchemaImporter.SchemaImporterClassGenerator" isEnabled="false" />
     <taskPreset name="SD.Tasks.Adapter.Webservices.SchemaImporter.ProjectCreator" isEnabled="false" />
    </taskGroupPreset>
</taskPresets>
</preset>

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37372 posts
# Posted on: 18-Jun-2008 12:33:28.  
When I copy/paste your tasksfile in a test.preset file, I can load it and use it just fine in the v2.5 designer (build june 2nd).

When you load the tasks file you pasted in your last post, it crashes with the exception you methioned in the startpost?


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.