I have built a template project with a Template.json and this will generate the template fine ( no errors at all )
ive also managed to add some choices to the symbols that will add or hide code snippets as needed
what im now trying to achieve is removing classes and interfaces based on those same choices
I have added a sources block with the exclude and the condition but it appears to be simply ignored when i generate the project.
the files are in the project created in infrastructure/mongo
but i have also tried with the following
**/MongoRepository.cs
ive included the sources block below as it appears to be the issue as far as i can see ( the rest of the file works fine )
"sources": [
{
"modifiers": [
{
"condition": "(!Mongo)",
"exclude": [
"**/Infrastructure/Mongo/**"
]
}
]
},
{
"exclude": [
".template.config/**"
]
}
]
UPDATE after testing i have found it appears that maybe its the condition here thats causing the issue if i move the files to the exclude below it will work no matter what. but any condition that is placed in that field will not complete (i have set this field to (1==1) with the same failure)