This documentation is archived and is not being maintained.

VSPackages Frequently Asked Questions

Visual Studio 2005
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This topic addresses questions from the Visual Studio SDK user community about VSPackages. The topic will continue to be updated with new content from the community.

Contents

Location of C# Project Resource Files

Q: When I created new Visual C# VSPackages in the past, an unmanaged satellite project (ending with UI) was automatically created as well. Now, using Visual Studio 2005 SDK, that satellite project no longer is created. Where are the resource files for my Visual C# VSPackage projects located?

A: The unmanaged satellite project no longer is used for managed VSPackage projects. Now, the resources for managed language VSPackages are embedded in your VSPackage project in a file called VSPackage.resx. This resource file must be named VSPackage.resx and cannot be changed. Also, your Package class must have the following attribute:

[PackageRegistration(UseManagedResourcesOnly = true)]

Additionally, if you have CTC resources, such as...

<CtcFile Include="CtcComponents\PkgCmd.ctc">

<ResourceName>1000</ResourceName>

</CtcFile>

...then you also must add the following to your .csproj file:

<EmbeddedResource Include="VSPackage.resx">

<SubType>Designer</SubType>

<MergeWithCTO>True</MergeWithCTO>

</EmbeddedResource>

All of this is automatically done for you if you create your VSPackage using the VSPackage Wizard.

See Also

Show: