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

查看:158
本文介绍了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包含本地化资源(例如fr\MyExtensions.UI.resources.dll),但是VSIX软件包不包含这些资源(尽管它们存在于bin \ Debug目录中).

MyExtension.UI contains localized resources (e.g. fr\MyExtensions.UI.resources.dll), but the VSIX package doesn't include these resources (although they are present in the bin\Debug 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天全站免登陆