Issue with shared WinForms resources across projects in Visual Studio

前端 未结 5 1508
野的像风
野的像风 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条回答
  •  情书的邮戳
    2020-12-02 16:40

    You only need add a new class project with a RESX file where you include the resources (images, texts, etc). After in the other projects add a reference to this and use the Resource class name in order to access the resource needed, for example: Project.SharedImages.Upload_64x64 (the result is a Bitmap ready to use in this case)

提交回复
热议问题