Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
F# FSI对程序集保持独占锁定_F# - Fatal编程技术网

F# 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

在我的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 another process.

我试过关闭FSI窗口,仍然没有帮助。有什么想法吗?

我找到了解决办法。而不是关闭保留状态的FSI窗口。我应该运行
#退出命令。

请参阅。这应该在即将发布的版本中修复。@kvb您知道它是否已修复吗?我似乎仍然遇到这个问题。@Monsignor-我相信是的-现在有一个
shadowcopyreferences
选项可以传递给fsi.exe;在Visual Studio中,这可以在F#交互式窗口的选项中设置(默认为True)。@kvb谢谢,在VS代码的设置中添加了
“FSharp.fsiExtraParameters”:[“--shadowcopyreferences+”]
,解决了我的问题。