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
0 nhận xét:
Đăng nhận xét