CodeSmith Community
Your Code. Your Way. Faster!

Really basic problem with templates since V2.0 :-(

Latest post 12-18-2006 11:41 AM by zkent. 4 replies.
  • 11-24-2006 8:58 AM

    • sh856531
    • Not Ranked
    • Joined on 08-23-2005
    • Posts 5
    • Points 145

    Really basic problem with templates since V2.0 :-(

    Hi All,

     I'm sorry if this has been covered in another post, but I'm having a real problem getting anywhere with NetTiers with the 2.0 release. It seemed to work when it was CTP but when I tried the 2.0 release I get the following problems:

     - When I open the NetTiers.cst in CodeSmithStudio (or the other program you get with CodeSmith) I don't get any properties to set.

    - If I run or build it, I get 3 Errors and ~50 warnings. I'm assuming this problem is what's causing the first. The particular error messages I'm getting are:

    C:\Documents and Settings\simon\Desktop\netTiers2.0.0\TemplateLib\CommonSqlCode.cs(2515,10): error CS0117: 'string' does not contain a definition for 'Contains'
    C:\Documents and Settings\simon\Desktop\netTiers2.0.0\TemplateLib\CommonSqlCode.cs(2585,36): error CS0019: Operator '!=' cannot be applied to operands of type 'System.Guid' and '<null>'
    C:\Documents and Settings\simon\Desktop\netTiers2.0.0\TemplateLib\CommonSqlCode.cs(2589,12): error CS0117: 'System.Data.DbType' does not contain a definition for 'Xml'

     Can anyone tell me why this is happening? I'm really surprised no-one else has got this....

     Thanks to anyone who can advise

    S

     

    • Post Points: 35
  • 11-26-2006 4:14 PM In reply to

    • mcquiggd
    • Top 25 Contributor
    • Joined on 07-11-2006
    • Amsterdam
    • Posts 174
    • Points 4,375

    Re: Really basic problem with templates since V2.0 :-(

    Hi,

     can you let us know which version of Codesmith you are using...? If it is 2.6 (I believe the last 'free version'), you might well gave problems as the later templates do not function correctly with that older version of CS...

     If you are indeed using a older version of Codesmith, might I suggest a quick test with the demo download of version 4.0...?

     If you are using 3.2 or later, i'll put my think hat on Smile

     Regards,

     David

    David (Could people PLEASE click the 'Mark As Answer' button on the message that solved their problems - it will help others with similar questions and could potentially be included in an FAQ to save time for all of us)
    • Post Points: 35
  • 11-27-2006 2:43 AM In reply to

    • sh856531
    • Not Ranked
    • Joined on 08-23-2005
    • Posts 5
    • Points 145

    Re: Really basic problem with templates since V2.0 :-(

    Hi there,

    I seem to be using 3.1 or there abouts. I didnt realise an update to 3.2 had been released. I'm just downloading it now so hopefully that should fix it. I'll post again if it doesnt.

    Many thanks for your help

    Simon

    • Post Points: 35
  • 11-28-2006 1:09 AM In reply to

    • DaveM
    • Not Ranked
    • Joined on 01-18-2006
    • Posts 6
    • Points 180

    Re: Really basic problem with templates since V2.0 :-(

    I had this problem with 3.1 too. You'll see that String.Contains() is new in the dotnet framework 2.0, and null handling changed too, so it will be that. I believe that you can't change the version of the framework that CS uses and 3.1 is fixed on 1.1 where as 3.2+ are 2.0??
    • Post Points: 35
  • 12-18-2006 11:41 AM In reply to

    • zkent
    • Top 50 Contributor
    • Joined on 11-16-2004
    • Colchester, VT, USA, N. America, Earth....
    • Posts 83
    • Points 1,455

    Re: Really basic problem with templates since V2.0 :-(

    Confirmed! CS 3.2 is needed.

    I just installed .NetTiers 2.0 and was getting the same errors with CS 3.1.  I just installed CS 3.2 and it compiled the NT 2.0 templates without errors.  I have .NET 2.0 framework installed too.

    Zachary Kent
    Director of IT

    R. J. Peters Associates, Inc.

    www.avmax.net
    Filed under: , ,
    • Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems