private CreateEmptyMsBuildProject ( string projectFilePath, Microsoft.Build.Evaluation.ProjectCollection collection ) : Microsoft.Build.Construction.ProjectRootElement | ||
projectFilePath | string | |
collection | Microsoft.Build.Evaluation.ProjectCollection | |
return | Microsoft.Build.Construction.ProjectRootElement |
private ProjectRootElement CreateEmptyMsBuildProject(string projectFilePath, ProjectCollection collection) {
using (XmlReader reader = EmptyProject.CreateReader()) {
#if VS14
ProjectRootElement importFile = ProjectRootElement.Create(reader, collection);
#else
ProjectRootElement importFile = ProjectRootElement.Create(reader, collection, preserveFormatting: false);
#endif
importFile.FullPath = projectFilePath;
return importFile;
}
}