Thyag Raj

Thyag Raj

  • NA
  • 202
  • 2.8k

How to reference/store assemblies from relative path

Sep 26 2017 9:32 AM

I have asked the question again ,because in the previous post (http://www.c-sharpcorner.com/forums/how-to-referencestore-assemblies-from-relative-path)  reply was not working for me & there was no option to add the comment or edit the post. 

I am working on windows application . Please find below the probing of private path in appconfig

< probing privatePath="%PROGRAMFILES%\Temp\"/>

I want the dll's to be referenced to \Users\xxxx\AppData instead of probing.

How can i changes this logic to store/reference the dll's from relative path.

. I am new to dotnet & windows application .

The above application will be installed in client machine in Windows 10 OS & the dll's will be copied to program files application path , Since users have permission issues for storing the dll's with this path. We want to change the location of dll's to appdata path( \User\xxxx\AppData ) so that with normal account application can be installed.

Can it be possible to have logic which is generic & to reference the assembly from generic path & not to hard code the path of the assembly in app config .


Please let me know your sugeestion.
 
Thanks in advance.
 
 
 

Answers (1)