Code cannot be generated in file '{0}' because it is not part of the project. Add the file to the project and try again, ...