Visual Studio 2013: Database Project MSBuild error

前端 未结 15 918
遥遥无期
遥遥无期 2020-12-13 23:31

I\'ve got a database project as part of my solution in Visual Studio 2013. Been working perfectly for the last 3 weeks and now suddenly today it won\'t build and so I cannot

15条回答
  •  温柔的废话
    2020-12-14 00:04

    I experienced the same issue with a slightly different stack trace:

    Error MSB4018: The "SqlBuildTask" task failed unexpectedly. System.IO.IOException: The file exists.

    Turns out this is a issue with the Temp directory for the service account I was using, I think if you exceed X number of folders/files in that directory the publish will no longer work. Fixed this issue by following the instructions mentioned here (for my service account):

    • Go start-> run
    • Type %temp% and click ok
    • Make sure you are in the folder /Local/Temp
    • Delete everything in this folder

提交回复
热议问题