Visual Studio 2017 bin oslyn archivos bloqueados durante la compilación
Estoy ejecutando VS2017 versión 26430.13 y cada vez que intento construir un proyecto web obtengo errores que deniegan el acceso a los archivos en el bin\roslyn. Durante un período de aproximadamente 5 minutos los archivos se desbloquean y puedo construir, pero el retraso de 5 minutos es inaceptable.
Estos son los archivos que permanecen bloqueado:
- Microsoft.CodeAnalysis.CSharp.dll
- Microsoft.CodeAnalysis.dll
- Microsoft.CodeAnalysis.VisualBasic.dll
- Microsoft.DiaSymReader.Nativo.amd64.dll
- Sistema.Colecciones.Inmutable.dll
- Sistema.Diagnostico.FileVersionInfo.dll
- System.IO.Compression.dll
- System.IO.FileSystem.dll
- System.IO.FileSystem.Primitives.dll
- Sistema.Reflexión.Metadatos.dll
- Sistema.Seguridad.Criptografía.Algoritmo.dl
- Sistema.Seguridad.Criptografía.Primitivos.dl
- Sistema.ValueTuple.dll
- VBCSCompiler.exe
12 answers
ACTUALICE Microsoft.CodeDom.Proveedor.Paquete DotNetCompilerPlatform a V1.0. 7
- Encuentra Microsoft.CodeDom.Proveedor.Plataforma Dotnetcompiler de NuGet
Desinstalar la versión anterior
Instalar V1.0. 7 o más reciente
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-11-13 22:18:25
Simplemente abra el administrador de tareas y elimine cualquier instancia de VBCSCompiler.exe. Ni siquiera necesitas cerrar Visual Studio.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-07-11 21:14:20
En lugar de matar el proceso manualmente, puede usar los siguientes comandos en un Evento previo a la compilación:
tasklist /FI "IMAGENAME eq VBCSCompiler.exe" 2>NUL | find /I /N "VBCSCompiler.exe">NUL
if "%ERRORLEVEL%"=="0" (taskkill /IM VBCSCompiler.exe /F) else (verify >NUL)
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-07-25 09:03:57
Revertir el paquete Microsoft.CodeDom.Providers.DotNetCompilerPlatform
a V1.0.4
Este consejo proviene de un comentario sobre el informe de problemas de la comunidad de desarrolladores https://developercommunity.visualstudio.com/solutions/79954/view.html .
Estábamos en v1.0.5 y experimentamos archivos bloqueados con frecuencia. Después de revertir el Microsoft.CodeDom.Proveedor.DotNetCompilerPlatform paquete a V1.0.4 ya no estamos experimentando archivos bloqueados.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-01 11:27:13
Una solución es cerrar VS, abrir el administrador de tareas y matar cualquier instancia de VBCSCompiler.exe
(Gracias Tom John: https://developercommunity.visualstudio.com/content/problem/71302/binroslyn-files-locked-during-build.html)
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-07-10 13:32:55
Proyecto > Administrar paquetes NuGet... > Installed (tab) > in search input set this:
codedom
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-09 18:05:05
Tengo VS 2017 Enterprise y para mí el problema se resolvió con esto:
- Degradado Microsoft.Net.Compilers de 2.3.1 a 2.3.0
- Degradado Microsoft.CodeDom.Proveedor.DotNetCompilerPlatform de 1.0.5 a 1.0.4.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-17 05:00:34
Instalar Microsoft.CodeDom.Proveedor.Plataforma Dotnetcompiler.BinFix nuget Se solucionó el problema para mí
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-11-26 14:39:29
Para mí actualizar el paquete nuget...
Microsoft.Net.Compilers
A más tardar en el momento de esta publicación 2.7.0 arreglé esto para mí. era versión 1.3.2
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-18 15:12:40
En mi caso hice estos dos pasos:
- uninstall-paquete de Microsoft.CodeDom.Proveedor.DotNetCompilerPlatform
- Install-Paquete Microsoft.CodeDom.Proveedor.DotNetCompilerPlatform-Versión 1.0.8
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-05 16:59:08
Antes de intentar algo drástico, reinicie su computadora
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-05 17:18:16
Actualiza el paquete Microsoft.CodeDom.Providers.DotNetCompilerPlatform
a V1.0.6
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-15 20:04:33