asp.net mvc - MSBuild: MSB3061 - cannot access file because it is used by another process -
I am trying to create an ASP.NET MVC project through the command line.
I am running this command: msbuild / p: platform = "no cpu"
In this project, we use the configuration transformations with MSBuild are doing. We have a pre-build event that looks like this: C: \ Users \ xxxx \ Development \ EPiServer \ GIT \ xxxx \ xxxx \ [MSBuild] \ BuildSpecificConfigTransforms.xml (86,5): Error MSB3061: Unable to delete file ".. \ connection.Strings.config.temp" . The process can not use the 'C: \ user \ xxxx \ development \ EPiServer \ GIT \ xxxx \ xxxx \ connectionStrings.config.temp' file because it is being used by another process. Does anyone know what this is? "$ (MSBuildBinPath) \ msbuild.exe" "$ (ProjectDir) [MSBuild] \ BuildSpecificConfigTransforms.xml" / p: configuration = $ (configuration name)
(PreBuildEvent target) -> gt;
I have learned about this error during MSBuild during my ASP.NET MVC deployment automation .
Can you check that
1) BuildSpecificConfigTransform.xml is open
2) BuildSpecificConfigTransform.xml iis manager (win key + r and type 'inetmgr ) In any IDE (VS2012) or device (eg: Notepad, etc.) ') The application that is running. If so, then stop Iis and run this script.
3) (rare case) Is there a file with sufficient permission?
I would be happy if it works
Comments
Post a Comment