0

solution 1 -project 1 --images

solution 2 -project 2 --images

I want the images folder to be common for both the solutions . is that possible ? if so how ? Thanks in advance

kuna
  • 25
  • 1
  • 8
  • Create a [Shared Project](http://stackoverflow.com/questions/30634753/what-is-the-difference-between-a-shared-project-and-a-class-library-in-visual-st) and include it in a project in each solution – earloc May 17 '17 at 06:56
  • or add the files in one project and add the files as Links to the other project – Paweł Łukasik May 17 '17 at 06:57
  • yeah, been there, done that ;) shared projects are imo better suited, as you only need to add the file once without the need to think about adding this file in the other project, too. – earloc May 17 '17 at 07:02

1 Answers1

0

Images are not by default a part of the assembly generated, so depending on the way you are using that image, you have to perform the following actions:

  • If you are using Resources, you can simply drag-drop the image from a central folder to the Resources.resx, it will not copy the image, instead it will link it. You can do this for multiple solutions.

  • If you are including images as Content, you have to add the image to your project by clicking Add > Add Existing Item from your project. The instead of clicking Add from the file chooser, you have to click Add As Link from the Add dropdown menu.

  • A last option is to create a common project which you include in both your solutions. In that project you can add the images, which you can reference from both solutions.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325