2017年7月12日 星期三

[研究] Visual Studio 2017 編譯出現 拒絕存取路徑 Microsoft.CodeAnalysis.CSharp.dll

[研究] Visual Studio 2017 編譯出現 拒絕存取路徑 Microsoft.CodeAnalysis.CSharp.dll

2017-07-12

1>------ 已開始清除: 專案: PMSWeb, 組態: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Collections.Immutable.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Collections.Immutable.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Diagnostics.FileVersionInfo.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Diagnostics.FileVersionInfo.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.Compression.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.Compression.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.FileSystem.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.FileSystem.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.FileSystem.Primitives.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.IO.FileSystem.Primitives.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Reflection.Metadata.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Reflection.Metadata.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Security.Cryptography.Algorithms.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Security.Cryptography.Algorithms.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Security.Cryptography.Primitives.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Security.Cryptography.Primitives.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Text.Encoding.CodePages.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Text.Encoding.CodePages.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.ValueTuple.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.ValueTuple.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Xml.ReaderWriter.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Xml.ReaderWriter.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Xml.XPath.XDocument.dll"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\System.Xml.XPath.XDocument.dll'。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: 無法刪除檔案 "D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\VBCSCompiler.exe"。拒絕存取路徑 'D:\CODE\PMS\trunk\PMSWeb\PMSWeb\bin\roslyn\VBCSCompiler.exe'。
========== 清除: 1 成功、0 失敗、0 略過 ==========


把 Visual Studio 2017 關閉,重新啟動,重新編譯,成功。

(待續)

相關

Visual Studio 2017 bin\roslyn files locked during build
https://stackoverflow.com/questions/44682281/visual-studio-2017-bin-roslyn-files-locked-during-build

bin\roslyn files locked during build
https://developercommunity.visualstudio.com/content/problem/71302/binroslyn-files-locked-during-build.html

2 則留言:

  1. https://stackoverflow.com/questions/44682281/visual-studio-2017-bin-roslyn-files-locked-during-build

    參考~

    回覆刪除