public static void AddGeneratedFiles(IVsProject project, string file) { if (project.IsCppProject()) { AddCppGeneratedFiles(project, file); } else { AddCSharpGeneratedFiles(project, file); // // Workaround for .NET Core project system adding duplicate // items when the added item is part of a glob project.RemoveGeneratedItemDuplicates(); } }