6
如何解決看起來像這樣的錯誤消息?觸發它F#交互式,對dll引用的API限制
`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.
代碼,可能是這樣的:
#r @"..\packages\NLog.2.0.0.2000\lib\net20\NLog.dll"
NLog.Config.SimpleConfigurator.ConfigureForConsoleLogging()
我在這裏添加了這個答案,因爲我找不到它,而谷歌搜索,重新加載交互沒有幫助,我不得不猜猜我的答案(工作)的方式。所以,谷歌,這是一些飼料。 – Henrik 2012-02-27 12:47:56