Info App.config probing privatePath

  • Thread starter Thread starter Antonio
  • Start date Start date
A

Antonio

Hello,

I need some information about the setting for the exe(in a file app.config)
to find Reference...

i know that i can use the syntax: <probing privatePath = "Bin;Utils"/>

is possibile that there is no way to set the search also in the root
directory?

Example ...

My Directory Program : c:\program files\My Software

In my Path Program there are directory BIN and UTILS...

I want create a folder EXE(in c:\program files\My Software) and read
dependencies in the BIN and UTILS

I test <probing privatePath = "\Bin;Utils"/> or <probing privatePath =
"..Bin;Utils"/> but not works...

Help me
 
I need some information about the setting for the exe(in a file app.config)
to find Reference...

i know that i can use the syntax: <probing privatePath = "Bin;Utils"/>

is possibile that there is no way to set the search also in the root
directory?

No, you CANNOT reference stuff outside your app's main directory -
only in that directory, or any subdirectories thereof.
Example ...
My Directory Program : c:\program files\My Software

I want create a folder EXE(in c:\program files\My Software) and read
dependencies in the BIN and UTILS

Won't work - sorry. That's the way it is in the .NET framework - you
can only deal with stuff in your own directory, or any subdirs - but
not in other directories on the same level, or even "up stream" in
your directory hierarchy.

Marc

PS: Unless of course you use an explicit "Assembly.LoadFrom(:.....)"
and pass it a full path to another location......
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
 
Back
Top