Visual Studio 2013: Database Project MSBuild error

前端 未结 15 841
遥遥无期
遥遥无期 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
    0 讨论(0)
  • 2020-12-14 00:05

    I am using Visual Studio Community 2013.

    I had same error:

    You can fix it by updating the SQL Server Tools:

    Tools --> Extensions and Updates
    

    Then under Product Updates you will see an option to update SQL Server Update.

    Click on Update, after it has installed restart Visual Studio.

    0 讨论(0)
  • 2020-12-14 00:08

    I had the same issue. Running disk check and then rebooting fixed it.

    0 讨论(0)
  • 2020-12-14 00:12

    I had the same issue. I tried to repair Visual Studio 2013, update 4, SSDT, the DAC tools, etc., but it didn't work any better.

    However I noticed the Microsoft.Data.Tools.Schema.SqlTasks.targets file present in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT was dated from 2013 (In fact it corresponded to the old SSDT). So what I did is just copy the new one (which I suprisingly found in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT ...) over to this v12.0\SSDT folder, restarted Visual Studio 2013 and now it works. For information, that new SSDT targets file is dated from 2014/10/26 and its size is 75437 bytes.

    0 讨论(0)
  • 2020-12-14 00:15

    It turns out the issue was with Visual Studio Update 3. I uninstalled and reinstalled VS 2013 to Update 2 only and reinstalled Data Tools and it works perfectly now.

    0 讨论(0)
  • 2020-12-14 00:18

    If it helps anybody, I installed VS2014 CTP 3, and I can build from it. Interestingly after a successfull build in vs2014, the next time you build in VS2013 it works. But subsequent builds in VS2013 dont work, until you rebuild in VS2014.

    0 讨论(0)
提交回复
热议问题