hoffi / gulp-msbuild

gulp-msbuild has moved to https://github.com/fluffynuts/gulp-msbuild.
MIT License
53 stars 44 forks source link

dll cannot be copied because it is used by another process #73

Open Nanstop opened 6 years ago

Nanstop commented 6 years ago

This is definitely not a new issue but lately the success rate of running a gulp task to build my app is lower than 10% (same rate when build on server). Every time we see different dll(s) is/are having this issue. Please help and none of the suggestion on stackoverflow seems to help.

My app is a website built in c# asp.net MVC using VS2017, I have 30~ish projects under the solution and each time the build fails is because those dll(s) is used by one of the projects.

MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(96,5) trys to copy the following dlls and ran into such problem:

Newtonsoft.Json.dll Microsoft.CodeAnalysis.VisualBasic.dll System.Collections.Immutable.dll

I know this plugin is no longer been maintained but would still appreciate any help for this issue.