title: Refering from image resources to images in the packages folder in VS 2015
body: <p>For a certain project, I needed to create different NuGet packages which contained images. Then, I needed to install these packages in the project and put the images in forms. This all went smoothly.</p>
  
  <p>My problem is, when I checkout to another branch in Git, and do a package restore, for some reason Visual Studio isn't able to find the images which were used in the forms. For it to work, I need to manually type in the following command on solution level: </p>
  
  <pre><code>Update-Package Reinstall
  </code></pre>
  
  <p>After I did this, everything was building again. The problem is, I don't want to do this every time I switch branches in Git. I already looked if Visual Studio had a solution to this problem, but all I could find was this: <a href="https://msdn.microsoft.com/en-us/library/ht9h2dk8(v=vs.100).aspx" rel="nofollow noreferrer">Linked and Embedded Resources</a>.</p>
  
  <p>I want that when I do a package restore, Visual Studio replaces the reference to the image, so it will always recognize the images after a package restore. My question: Is this even possible, and if it is, how? </p>
  
  <p>I hope you have enough information to be able to answer this question. Thanks!</p>
  
  <hr>
  
  <p>EDIT:
  Okay, so let me rephrase the problem here. When I restore the packages, it only restores the file in the <code>\packages\</code> folder. That means, when I clone the repository locally, there isn't anything in the project resources folder, since I said in the .gitignore images should be ignored. So when I restore it doesn't update the <code>\packages\</code> folder. 
  That's why I'd like there to be references to the <code>\packages\</code> folder, inside the resources folder.</p>
  
  <p>For example: </p>
  
  <p>There is an image in the package Package1.1.0.0. called Img1. When I install the package, it saves the image under the following path. </p>
  
  <pre><code>\packages\Package1.1.0.0.\Resources\Icons\Img1.png
  </code></pre>
  
  <p>\packages is the folder underneath the solution.</p>
  
  <p>In the project in which I installed the package, there is also an Img1. That image is saved here:</p>
  
  <pre><code>\project\Resources\Icons\Img1.png
  </code></pre>
  
  <p>project is saved underneath the solution.</p>
  
  <p>Now, I want the Img1.png doesn't contain the file itself, but rather a reference to the Img1.png in the packages folder. Also, when I update the package to version 1.0.1, I want Visual Studio to still have the reference to the Img1.png correctly. </p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>Okay, so I did a bit of looking around, and I found out that my exact problem is an issue on the GitHub page of NuGet: <a href="https://github.com/NuGet/Home/issues/2895" rel="nofollow noreferrer">https://github.com/NuGet/Home/issues/2895</a>. </p>