Fixed: Find a better way to get the generated folders taking in account multi content root projects / not based on source folder, need to check is works also for inMemoryProjects.
Need to dispose the component
removed not needed check