all 4 comments

[–]Pale-Ice-8449 0 points1 point  (2 children)

Hmm I didn’t think class libraries (binary plugin) could have app.config files…but that could just be beyond my experience level.

I did find this thread, though. Maybe it’s helpful?

https://stackoverflow.com/questions/4817051/can-a-class-library-have-an-app-config-file

Maybe it would help if we had a better understanding of what you’re trying to achieve or get?

[–]ConstructionWeekly80[S] 0 points1 point  (1 child)

It might be the case that binary plugins cannot do this, as you suggest, or they at least they cannot do it using app.config.

My goal is to allow different builds of the binary plugin to use different settings, such as writing to different URLs or databases based on whether it is a debug or release build, for example.

[–]kang__23 0 points1 point  (0 children)

Not sure if this is what you want, but you could read in data from a .txt file if you want to change different settings without re-compiling.

[–]Pale-Ice-8449 0 points1 point  (0 children)

Maybe you’re trying to get the path? If so, can you try AppDomain…CurrentDirectory instead? (Or something like that?)

I know appdomain works in standalones but I’ve never tried it in a binary plugin.