Is there a clean way to exclude Sitecore templates from the TDS code generation? We have to add all Sitecore templates to TDS because we exchange them with other developer.
Exclude templates from Sitecore TDS Code Generation
577 Views Asked by Florian Sc At
2
There are 2 best solutions below
0
jammykam
On
You can set the Property to not generate classes for an item (and sub-items).
An alternative way of achieving this is a split out your solution into 2 separate projects, one for the templates that need code generation and one for those without. You can then use the Multi-project Properties to bundle all the items together into a single update package.
Related Questions in SITECORE
- Web Forms For Marketers (WFFM) Rich Text Field Type
- Incomplete sitecore publish ( presentation details missing )
- Is there an easy way to fake a Sitecore Device for testing?
- Lost uCommerce interface within Sitecore
- Unable to use WFFM using Sitecore MVC
- How to get all the fields from Sitecore
- 'Sitecore.Forms.Mvc.Models.FormModel' vs. 'Sitecore.Mvc.Presentation.RenderingModel'
- Sitecore WFFM checkbox values on Create Item
- How to add an session value to a custom webforms for markters save action?
- Set a field in all the children of an item
- Trouble With Sitecore Web.config Patch File
- Sitecore link with icon
- Sitecore Inheriting an Item from Branches (Inheriting complete structure)
- Sitecore 7.2 publish increment the data serialization folder Size
- In Sitecore 7.5 how to programmatically create media items with language versioning?
Related Questions in CODE-GENERATION
- Using Simulink Coder - atomic change of multidimensional parameters (matrix, vector)
- Generate C++ style code using LLVM
- Generate variable definition code from runtime data structure
- Hibernate Domain Object Generation
- Rails Generator Pass an Array of Arguments
- generation of java bytecode using JCodeModel
- How can I use Scala macros to create an object?
- Is there way to format code with line-breaks and indentation produced by ExpressionToCode
- JavaPoet Add Generic Parameter
- Visual Studio code generation - Use uppercase type names
- xtext generator how to prevent file override
- Openjpa generate entities from table skips one column
- Using TM_SELECTED_TEXT in my custom snippets
- Compiling java class from non-java file
- Dynamically update .csproj during Visual Studio build
Related Questions in GLASS-MAPPER
- Sitecore Glass Mapper Null reference exception on some model properties
- Sitecore, wrong type of inherited template field created by TDS
- Glass Mapper - "The given key was not present in dictionary"
- The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type
- RenderLink and custom attribute, space is converted to plus-sign
- Issue in Accessing Data from Sitecore using Glass Mapper
- Sitecore GlassMapper MVC add standard fields to model
- Why Glassmapper's Editable field doesnt invoke Sitecore RenderField pipeline
- How to Unit Test a GlassController Action which Returns a View Taking a Model
- How to make a NameValueCollection list editable in GlassMapper
- Filter in Sitecore Children in Sitecore
- How to Unit Test a GlassController Action which Uses Sitecore.Context.Item
- How to Unit Test a GlassController Action which Uses Sitecore.Mvc.Presentation.RenderingContext
- Unit Testing Using Sitecore.FakeDb Throws Sitecore.Nexus instantiation error on GetItem
- MissingMethodException: Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type)'
Related Questions in TDS
- Sitecore, wrong type of inherited template field created by TDS
- TDS and TFS integration
- Visual studio 2012 TDS project not loading in VS2015
- The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type
- How to handle ASP.NET configuration changes in a Sitecore project that uses TDS?
- Glass Mapper, TDS Code Generation and Rich Text field in Sitecore
- Sitecore Continous Integration with TDS + TFS Cloud --> .target file not found
- get an Uknown error when trying to executing a long query in NodeJs using mssql module
- Automatic publish of Sitecore content at end of TDS CI deploy
- TDS .update package fails with object reference error - 8.0 update 2
- Is there any way to tell TDS not to sync security settings field for Sitecore?
- Receiving error when using mix ecto.create
- Sitecore TDS on deploy cannot find map.xml
- Team development Sitecore postscript
- Project Doesn't Build After Installed Sitecore TDS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

From what I recall, you will usually trigger code generation for a section of the tree by assigning a code generation template to the item in the TDS project.
If you are assigning your code generation TT at the top level of the project, this will include all templates. If you would like to exclude, just move your code generation template assignment down a level and make sure you do not assign a code generation template to the "Templates" item in the TDS project. This should ensure code generation does not run for those items.