Search code examples
visual-studio-2010localizationvsixvs-extensibility

VSIX package doesn't include localized resources of referenced assembly


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 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).

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...


Solution

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

    1. Select the Project Reference node to 'MyExtension.UI' in Solution Explorer and view the Properties (F4)
    2. Change the value for "Output Groups Included in VSIX" to the following: BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;GetCopyToOutputDirectoryItems;SatelliteDllsProjectOutputGroup