F# FSI对程序集保持独占锁定
在我的FSI脚本中有如下语句F# FSI对程序集保持独占锁定,f#,F#,在我的FSI脚本中有如下语句 #I @"C:\path\to\bin\Debug\myassembly.dll" 当我再次尝试构建引用的dll时,我得到一个 Unable to copy file "obj\Debug\myassembly.dll" to "bin\Debug\myassembly.dll". The process cannot access the file 'bin\Debug\myassembly.dll' because it is being used by a
#I @"C:\path\to\bin\Debug\myassembly.dll"
当我再次尝试构建引用的dll时,我得到一个
Unable to copy file "obj\Debug\myassembly.dll" to "bin\Debug\myassembly.dll". The process cannot access the file 'bin\Debug\myassembly.dll' because it is being used by another process.
我试过关闭FSI窗口,仍然没有帮助。有什么想法吗?我找到了解决办法。而不是关闭保留状态的FSI窗口。我应该运行
#退出代码>命令。请参阅。这应该在即将发布的版本中修复。@kvb您知道它是否已修复吗?我似乎仍然遇到这个问题。@Monsignor-我相信是的-现在有一个shadowcopyreferences
选项可以传递给fsi.exe;在Visual Studio中,这可以在F#交互式窗口的选项中设置(默认为True)。@kvb谢谢,在VS代码的设置中添加了“FSharp.fsiExtraParameters”:[“--shadowcopyreferences+”]
,解决了我的问题。