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

后端 未结 5 1163
忘了有多久
忘了有多久 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条回答
  •  -上瘾入骨i
    2020-12-05 07:53

    Can you use a symbolic link to share the file into multiple folders?

    windows:

    mklink linked_location\ImageResource.resx original_location\ImageResource.resx
    
    
    C:\Users\preet>mklink
    Creates a symbolic link.
    
    MKLINK [[/D] | [/H] | [/J]] Link Target
    
            /D      Creates a directory symbolic link.  Default is a file
                    symbolic link.
            /H      Creates a hard link instead of a symbolic link.
            /J      Creates a Directory Junction.
            Link    specifies the new symbolic link name.
            Target  specifies the path (relative or absolute) that the new link
                    refers to.
    

提交回复
热议问题