public RoslynContentTypes(string projectPath, string templateFilePath) { if (string.IsNullOrEmpty(projectPath)) throw new InvalidProjectPathException(); var workspace = MSBuildWorkspace.Create(); _project = workspace.OpenProjectAsync(projectPath).Result; ObjectTypeFactory = new FurnaceObjectTypeFactory(templateFilePath); }
public RoslynContentTypes(string projectPath, string templateFilePath) { if (string.IsNullOrEmpty(projectPath)) { throw new InvalidProjectPathException(); } var workspace = MSBuildWorkspace.Create(); _project = workspace.OpenProjectAsync(projectPath).Result; ObjectTypeFactory = new FurnaceObjectTypeFactory(templateFilePath); }