Làm thế nào để bạn giải quyết thông báo lỗi giống như thế này?F # tương tác, hạn chế API về tham chiếu dll
`Binding session to 'C:\Program Files (x86)\NLog\.NET Framework 4.0\NLog.dll'...
error FS0193: API restriction: The assembly
'file:///C:\Program Files (x86)\NLog\.NET Framework 4.0\NLog.dll' has
already loaded from a different location. It cannot be loaded from a
new location within the same appdomain.
Mã kích hoạt nó, có thể trông như thế này:
#r @"..\packages\NLog.2.0.0.2000\lib\net20\NLog.dll"
NLog.Config.SimpleConfigurator.ConfigureForConsoleLogging()
Tôi đang thêm câu trả lời ở đây, bởi vì tôi không thể tìm thấy câu trả lời trong khi googling, tải lại tương tác không giúp đỡ và tôi phải đoán cách trả lời (đã hoạt động). Vì vậy, google, đây là một số thức ăn gia súc. – Henrik