Issue with shared WinForms resources across projects in Visual Studio

前端 未结 5 1507
野的像风
野的像风 2020-12-02 15:59

I\'ve moved all image resources in a large multi-project solution to a new project specifically created for shared resources.

Adding a new reference to other project

5条回答
  •  猫巷女王i
    2020-12-02 16:59

    SHARING RESOURCES BETWEEN PROJECTS IN VS2012

    in 3 easy steps using the designer only!

    1. create a project and add your resources to be shared as usual
    2. create another project and 'add as link' the resources.resx of the first project in the 'add existing item' Dialog, accessible from the context menu
    3. select images from the linked resource file as desired; this can be selected in the 'project resource file' pull down menu within the 'select resource' Dialog, accessible from the properties pane

    VOILA!

提交回复
热议问题