在 VS CE 2019 中创建数据连接器项目时无法加载文件或程序集 TemplateWizardInterface

Impossible to load file or assembly TemplateWizardInterface when creating a Data Connector projet in VS CE 2019

使用 Visual Studio Community Edition 2019,我正在尝试使用 Power Query SQK 创建 Power BI 数据连接器。

我的 VS 安装是全新的,除了严格的最小值之外什么都没安装(Visual Studio 安装程序建议时我没有选择任何东西)。

安装后,我只是下载了 SDK (https://marketplace.visualstudio.com/items?itemName=Dakahn.PowerQuerySDK&ssr=false#overview),双击该文件并自行安装。

回到VS,我想创建一个项目。我 select 数据连接器项目:

然后,我给它起个名字,点击“创建”,我得到这个错误信息:

它说:

Impossible to load the file or the assembly "Microsoft.VisualStudio.TemplateWizardInterface ... or one of its dependances. The file cannot be found

如何解决这个问题?

要解决此问题,请打开 Visual studio 安装程序,修改您当前的 VS 版本,进入“单个组件”选项卡,使用“sdk visual studio”过滤搜索。 SDK(对我而言)位于列表的末尾。安装它,问题就解决了。