VSIX 包不包含引用程序集的本地化资源 [英] VSIX package doesn't include localized resources of referenced assembly

查看:20
本文介绍了VSIX 包不包含引用程序集的本地化资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个 VS2010 扩展(我们称之为 MyExtension).此扩展的 UI 位于不同的程序集中 (MyExtension.UI),扩展项目仅包含从菜单命令调用 UI 的样板代码.

I'm creating a VS2010 extension (let's call it MyExtension). The UI for this extension is in a different assembly (MyExtension.UI), the extension project only contains boilerplate code to call the UI from the menu command.

MyExtension.UI 包含本地化资源(例如 frMyExtensions.UI.resources.dll),但 VSIX 包不包含这些资源(尽管它们是存在于 binDebug 目录中).

MyExtension.UI contains localized resources (e.g. frMyExtensions.UI.resources.dll), but the VSIX package doesn't include these resources (although they are present in the binDebug directory).

我应该如何告诉 VS 将这些资源包含在 VSIX 包中?我查看了 .vsixmanifest 设计器,但找不到合适的选项...

How should I tell VS to include these resources in the VSIX package? I looked in the .vsixmanifest designer, but I can't find the appropriate option...

推荐答案

这实际上是一个错误,将在未来的版本中解决.幸运的是,有一个简单的解决方法:

This is actually a bug that will be addressed in a future release. Fortunately, there is a simple workaround:

  1. 在解决方案资源管理器中选择MyExtension.UI"的项目引用节点并查看属性 (F4)
  2. 将VSIX 中包含的输出组"的值更改为以下内容:BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;GetCopyToOutputDirectoryItems;SatelliteDllsProjectOutputGroup

这篇关于VSIX 包不包含引用程序集的本地化资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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