3
Vote

Cannot generate code when using different TemplateDirectory

description

I can no longer generate code using the Visual Studio AddIn after I changed my SubSonicService element in my app.config to use a custom template directory.
 
I was using v2.0 of the tools and I got a error about string.IsNullOrEmpty(string) cannot covert object to string.
 
I upgraded to 2.0.3 (just now) and the error has changed, now it is giving an error looking for a DLL in my temp folder of my windows profile (C:\Documents and Settings\<myname>...."
 
The DLL is called 650ob9pf.dll
 
 
I've tried this with unaltered templates copied into my custom template directory and it made no difference.
I am able to generate the DAL from the custom template using the sonic.exe command line tool.
I have tried both relative and absolute paths to the template directory and it made no difference.
I am able to generate the DAL using the AddIn when I remove the templateDirectory attribute.
 
 
<SubSonicService defaultProvider="Protrack" templateDirectory="C:\dev\Protrack\DAL\SubSonicTemplates\">
    <providers>
        <add name="Protrack"
             type="SubSonic.SqlDataProvider, SubSonic"
             connectionStringName="Protrack"

             generatedNamespace="CrestSolutions.Protrack.DAL"
             fixPluralClassNames="true"
             removeUnderscores="false"
             generateRelatedTablesAsProperties="true" />
    </providers>
</SubSonicService>

file attachments

comments

kitog wrote Oct 25, 2007 at 9:44 PM

See attached screenshot.

wrote Oct 25, 2007 at 9:44 PM

wrote Nov 26, 2007 at 3:34 PM

wrote Jun 13, 2008 at 10:42 PM

wrote Feb 13, 2013 at 9:29 PM