There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Error in DteProcessor.FindProjectItemCollection - incorrect ProjectItems instance returned for files in subfolders
When generating an output file with setting Template.Output.File to some subdirectory, the DteProcessor.FindProjectItemCollection returns a ProjectItems instance pointing to the root directory of the project, not to the target subfolder. Then UpdateOutputFiles
methods acts like the target file has been moved within the project structure. ( "if (outputItem.Collection != collection)" condition is then valid)
I solved this issue by commenting out the condition in the FindProjectItemCollection method, that checks, whether the project is a database project. Then the loop on the end of the method is executed for any project kind and the correct ProjectItems collection