是否可以为 VSTO Addin 项目使用新的 SDK 样式的 .csproj 文件 [英] Is it possible to use a new SDK-style .csproj file for a VSTO Addin project

查看:40
本文介绍了是否可以为 VSTO Addin 项目使用新的 SDK 样式的 .csproj 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到任何文档,如果 SDK 样式的项目支持 VSTO 插件.

I cannot find any documentation, if VSTO AddIns are supported by SDK-style projects.

我已经安装并使用了 h.面包车布雷尔斯 project2015to2017.migrate2019.tool.生成的项目文件是通常的类库,不再是 Powerpoint 插件.因此,例如无法再从 IDE 启动项目以进行调试.

I already installed and used h. van brakels project2015to2017.migrate2019.tool. The resulting project files are usual class libraries and no more Powerpoint AddIns. Thus for example the projects cannot be startet anymore from the IDE for debugging.

BootStrapperpackage 和 ProjectExtension 没有被转移到新的文件格式.此外,未传输 ProjectTypeGuid.也许这将项目标记为旧样式项目文件中的 VSTO 插件.

The BootStrapperpackage and the ProjectExtension have not been transfered to the new file format. Additionally ProjectTypeGuids were not transfered. Maybe this marked the project as a VSTO Addin in the old style project files.

如果 SDK 样式的项目文件支持(在这种情况下如何?)或不支持(在这种情况下为什么?)vsto 插件项目,我很沮丧我找不到任何声明!此外,为什么没有人敢说/写.它会让事情变得清晰,我不必浪费时间去寻找它......

I'm frustrated I cannot find any statement if the SDK-style project files does support (and in this case how?) or does not support (and in this case why?) vsto addin projects! And furthermore, why does nobody dare to state/write that. It would make things clear and I don't have to waste my time searching for it ...

感谢您的帮助,卡尔

推荐答案

据我所知,无法将 VSTO 项目文件转换为较新的 SDK 格式.这主要是因为 ProjectTypeGuids.

To my knowledge, a VSTO project file cannot be converted to the newer SDK format. This is mostly because of the ProjectTypeGuids.

为了将项目文件正确转换为更新的 SDK 格式,ProjectTypeGuids 应该有一个 SDK.

In order to properly convert a project file to the newer SDK format, there should be an SDK for the ProjectTypeGuids.

据我所知,您的项目文件的标题中没有可使用的 VSTO SDK.

To my knowledge there is no VSTO SDK to use in the header of your project file.

MSBuild 15.0 引入了项目 SDK",它简化了需要导入属性和目标的软件开发工具包的使用.

MSBuild 15.0 introduced the concept of the "project SDK", which simplifies using software development kits that require properties and targets to be imported.

来自上述链接的信息表明项目 SDK 是标准"的首选后继产品.MSBuild 道具和目标.

The information from the above link indicates that Project SDKs are the preferred successor to the "standard" MSBuild props and targets.

您是否考虑过较新的基于网络的加载项?

这篇关于是否可以为 VSTO Addin 项目使用新的 SDK 样式的 .csproj 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆