private static MSBuildProject ReadProject(dynamic provider, string path) { byte[] fileBytes = provider.GetFileContents(path); return MSBuildProject.Load(new MemoryStream(fileBytes, false)); }