I took an existing ASP.NET 4/MVC 5 web site and manually converted to an ASP.NET 5/MVC 6 project.
When I got the application fully functional locally I attempted to publish to the previous web app on Azure. To do this I:
- Downloaded the publish profile from the Azure portal.
- Right clicked the web project and selected "Publish".
- Imported the publish profile and attempted to publish.
Amazingly it worked the first time. However on subsequent publish attempts I received the error:
Error : The 'prepublish' script failed with status code 1.
Looking at the output of the publish I see the following:
[13:25:07] 'min:ngAppJs' errored after 307 ms
[13:25:07] Error: EPERM, open 'C:SCMHolos Portal 1.0 (ASP.Net 5, MVC6)HolosPortalsrcHolosPortalwwwrootngAppngApp.min.js' C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.DNX.Publishing.targets(152,5): Error : The 'prepublish' script failed with status code 1.2>Publish failed due to build errors. Check the error list for more details.
