Welcome to the CodeSmith Community!

VS Source Control & CodeSmith

Support Forums

Feel free to ask any questions about CodeSmith here.

VS Source Control & CodeSmith

  • rated by 0 users
  • This post has 3 Replies |
  • 2 Followers
  • I am sure most shops have a specific folder to do all of their development work in. I really don't want to have to make the changes under my development folder then have to copy it up to my "my documents" folder in order to make changes. This problem also causes the second developer to have to change the path in the generated entites.csp file so that they point to their folder.

    I thought just for the heck of it to see if you can put a shortcut in the templates folder to see if it would work but it wouldn't.

    Not sure if I am coming across correctly but it's worth a try.

  • Hello,

    We recommend checking the templates into source control and then using relative paths like setting your output folder to .\ which will generate to the same folder as the CodeSmith Project File. You can also update the template path to be relative and then you will never have to edit it Smile.

    Please let me know if you have any questions.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

  • I figured out how to do this but it was a bit awkward. I went into Options and under CodeSmith / General I added to the TemplateFolders collection but I couldn't enter a path to the folder I wanted. I then had to restart CodeSmith to get the folder to show up. Then I named the folder and gave it a path. Kind of a weird way to get what I wanted but it worked in the end.

  • Hello,

    Good to hear that your up and running. There is an open folder icon in the Template Explorer that allows you to quickly add a folder.

    Please let me know if you have any questions.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

Page 1 of 1 (4 items)