Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

bin Directory in Project Won't Delete After First Build

$
0
0

I just finished upgrading NuGet packages in a large solution I am working on.  The project itself built fine and ran.  However, when I went to run the project a second time it gave several errors on build: (the ... is the path to the project)

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll". Access to the path '...\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Diagnostics.FileVersionInfo.dll". Access to the path '...\bin\roslyn\System.Diagnostics.FileVersionInfo.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.IO.Compression.dll". Access to the path '...\bin\roslyn\System.IO.Compression.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.IO.FileSystem.Primitives.dll". Access to the path '...\bin\roslyn\System.IO.FileSystem.Primitives.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Security.Cryptography.Primitives.dll". Access to the path '...\bin\roslyn\System.Security.Cryptography.Primitives.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Text.Encoding.CodePages.dll". Access to the path '...\bin\roslyn\System.Text.Encoding.CodePages.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Xml.ReaderWriter.dll". Access to the path '...\bin\roslyn\System.Xml.ReaderWriter.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Xml.XPath.XDocument.dll". Access to the path '...\bin\roslyn\System.Xml.XPath.XDocument.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\VBCSCompiler.exe". Access to the path '...\bin\roslyn\VBCSCompiler.exe' is denied.

Here is my current setup:

Microsoft Visual Studio 2017 Professional (15.2 r26430.14)

Windows 10

Chrome and IE11

What I know is that it does not matter if I debug using Chrome vs. IE11.  The issues is corrected when I open the task manager and kill the VBCSCompiler.exe.  I get the errors on solution "clean".  Anyone know what this executable does or what could be triggering it?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>