Is there any other way to find the correct position of my current folder, where the .tt files exists?
I have a large folder structure in my project. The method FindFolderByName just consider the First() Item in the same project, if there are more than one ProjectItems. But this must not be the correct folder:
With this constellation the additional file will be generated in the first folder1-1 and not in the folder where the template is.
The method FindFolderByName should be more precise to find the correct folder. Maybe with a more specific folderName parameter in the StartNewFile method.
Is there any other way to find the correct position of my current folder, where the .tt files exists? I have a large folder structure in my project. The method
FindFolderByName
just consider the First() Item in the same project, if there are more than one ProjectItems. But this must not be the correct folder:StartNewFile("AdditionalsFile.cs"), "projectA", "folder1-1");
With this constellation the additional file will be generated in the first
folder1-1
and not in the folder where the template is.The method
FindFolderByName
should be more precise to find the correct folder. Maybe with a more specificfolderName
parameter in theStartNewFile
method.