It seems that FSI will not load from this DLL except for the name, so this will save you from the problem:
#I @"..\packages\NLog.2.0.0.2000\lib\net20" #r @"NLog.dll" NLog.Config.SimpleConfigurator.ConfigureForConsoleLogging()
#I
means add this folder to the boot path
#r
means link using dll-path; focusing on the name. This means that FSI will first use the file name, looking into the system-wide search path and only then try to use the line after #r
as a hint for the directory.
Thus, by doing this in this way, you are loading the NLog from the specified directory, not the system-wide one.
source share