Visual Studio 2015でF#プロジェクトビルドに問題があります。シングルセッション中に何回かビルドしようとすると、 、VS#2015 with F#は、DLLが別のプロセスで使用されているため、プロジェクトをビルドできません。
C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\fsc.exe -o:obj\Debug\[project_name.dll] -g --debug:full --noframework --define:DEBUG --define:TRACE --doc:bin\Debug\[project_name.XML] --optimize- --tailcalls- --target:library --warn:3 --warnaserror:76 --vserrors --LCID:1033 --utf8output --fullpaths --flaterrors --subsystemversion:6.00 --highentropyva+ --sqmsessionguid:bf374a59-aa1c-49c7-bd0e-2ca680563929 --[list of referenced dlls and files to build]
...
warning MSB3026: Could not copy "obj\Debug\[project_name_dll]" to "bin\Debug\[project_name_dll]". Beginning retry 10 in 1000ms. The process cannot access the file 'bin\Debug\[project_name_dll]' because it is being used by another process.
error MSB3027: Could not copy "obj\Debug\[project_name_dll]" to "bin\Debug\[project_name_dll]". Exceeded retry count of 10. Failed.
error MSB3021: Unable to copy file "obj\Debug\[project_name_dll]" to "bin\Debug\[project_name_dll]". The process cannot access the file 'bin\Debug\[project_name_dll]' because it is being used by another process.
それは、プロジェクトのDLLをブロックしているプロセスは、交換することが判明しdevenv
そのものです:受信しています。 Visual Studioのインスタンスを1つ実行していますが、デバッガが接続されていないプロジェクトを再構築しようとしています。
このヒントを解決するにはどうすればよいですか?
binフォルダを手動で削除しようとしましたか? – Ringil
エクスプローラが私に言っているので、プロジェクト.dllファイルがVisual Studioですでに開いているため、できません。 – Horusiath
それでは、VSを閉じてからbinフォルダを手動で削除してみてください。 – Ringil