Mẹo #7: Xử lý lỗi: Unable to copy file "[project location]\packages\Microsoft.Net.Compilers...

Kết quả hình ảnh cho Unable to copy file Microsoft.Net.Compilers
When building a web solution (not .net core). The bin folder is repeatedly locked due to the files in the roslyn folder being locked. The only solution appears to be to restart the computer.
Build errors show the following:
Unable to copy file "[project location]\packages\Microsoft.Net.Compilers.2.3.0-beta2\tools\System.Security.Cryptography.Primitives.dll" to "bin\roslyn\System.Security.Cryptography.Primitives.dll". Access to the path 'bin\roslyn\System.Security.Cryptography.Primitives.dll' is denied. Extranet
Solution: 
A Very quick way to solve this issue is to get the latest update from you VS NuGet of the assembly: Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Share on Google Plus

About Practice makes perfect

Chia sẻ cũng là một cách để học được nhiều hơn.
Có công mài sắt có ngày nên kim - Practice makes perfect
    Blogger Comment

0 nhận xét:

Đăng nhận xét