How to use shared resource file between projects in one solution?

后端 未结 5 1165
忘了有多久
忘了有多久 2020-12-05 07:25

I have a problem with resource files.

I have a solution with two projects. The first project contains ImageResource.resx file with the images that I use

5条回答
  •  春和景丽
    2020-12-05 08:03

    This didn't work for me and I found another (VS2015+) approach. See https://stackoverflow.com/a/45471284/4151626

    In short, the shared project is directly included into the peripheral project. Thus, even though the IDE does not support elements in the shared project. elements can be added to the shared project, via a text editor. They are then incorporated into the peripheral project during the build.

    (Apologies for the hyper-link. I would just repost the answer for clarity, but the stackoverflow editors crack down on this, deleting duplicate answers to save you from ???.)

提交回复
热议问题