我正在为具有工具栏命令的 VS2010 和 VS2012 进行扩展。
鉴于它们之间图标样式的变化,我想为每个提供一个单独的图标。
我如何在 .vsct
中指定它?我想我也许可以使用 Condition
,但我不确定 VS 版本是否已经有预定义的值。
最佳答案
似乎不使用 MSI 是不可能的,请参阅 MSDN 论坛上的“VS Package (VSIX): Having two different toolbar icons for VS2010/VS2012”。
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/