WindowsBase.dll static location
<p>I'm using OpenXML SDK for writing data into excel files. Now, this works well on my development machine. </p>

<p>Last week, we were taking our code to a production server and as expected, it did not have OpenXML DLL's installed. For it to work correctly, I need two DLL's on the server - 1. DocumentFormat.OpenXml.dll and 2. Windowsbase.DLL. I created a folder in the C drive and placed these DLL's in it. Let's say I placed them in the folder C:\OpenXML</p>

<p>For some reason, the reference in my solution for DocumentFormat.OpenXml.dll is pointing correctly to  C:\OpenXML\DocumentFormat.OpenXml.dll but WindowsBase is pointing to the location C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\WindowsBase.dll. I checked the location property from my DEV machine. Then I did a quick search for WindowsBase in C drive which brought up a lot of copies of that DLL. So I tried adding them one after another but still WindowsBase kept pointing to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\WindowsBase.dll. On DEV workstation, it works fine. But, on the server, the location C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\WindowsBase.dll is not present and my solution fails. </p>

<p>Not sure why WindowsBase is pointing only to a static location always. If there is flexibility, I can place it in some folder in server and reference it without any issues (like I did for the other library DocumentFormat.OpenXML.DLL). Any way around this?</p>