visual-studio - VSCT:不同VS版本的不同图标

标签 visual-studio visual-studio-extensions vsct

我正在为具有工具栏命令的 VS2010 和 VS2012 进行扩展。
鉴于它们之间图标样式的变化,我想为每个提供一个单独的图标。

我如何在 .vsct 中指定它?我想我也许可以使用 Condition ,但我不确定 VS 版本是否已经有预定义的值。

最佳答案

似乎不使用 MSI 是不可能的,请参阅 MSDN 论坛上的“VS Package (VSIX): Having two different toolbar icons for VS2010/VS2012”。

Ryan Molden (MSFT):

I do not believe you can use VSIX to install or specify target specific resources. VSIX is intended as a very simplistic deployment mechanism, it is in fact just a renamed ZIP file plus an installer with a small amount of logic to process pkgdef files. If you want more complex installs (like laying down different dlls based on your install target) I believe you would need to create an MSI.

关于visual-studio - VSCT:不同VS版本的不同图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15678023/

相关文章:

sql - sql pre 和deploy 是否在一个 session 中运行

visual-studio - 将生成文件转换为VS项目

visual-studio-extensions - Visual Studio 扩展中的日志错误

visual-studio-2015 - 无法在 Visual Studio 2017 (VS 2017) 的 DLL '?' 中找到名为 'PkgdefMgmt.dll' 的入口点

c# - VisualStudio VSPackage 自定义命令

c++ - GoogleTest 仅在定义在 .h 文件中时有效

visual-studio - VS2017,VSIX : just created AsyncPackage is not being instanced

c# - VSCT 未定义 'Parent/@id' 属性

c# - Unity - 使用新输入系统/角色 Controller 让角色看着鼠标