Visual Studio 2013:数据库项目 MSBuild 错误

编程入门 行业动态 更新时间:2024-10-28 00:25:01
本文介绍了Visual Studio 2013:数据库项目 MSBuild 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据库项目作为我在 Visual Studio 2013 中的解决方案的一部分.过去 3 周一直完美运行,但今天突然无法构建,因此我无法发布任何更改.我收到一个 MSBuild 错误:

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 publish any changes. I'm getting an MSBuild error:

"C:程序文件(x86)MSBuildMicrosoftVisualStudiov12.0SSDTMicrosoft.Data.Tools.Schema.SqlTask​​s.targets(513,5):错误:MSB4018:SqlBuildTask"任务意外失败.System.MethodAccessException: 尝试通过方法 'Microsoft.Data.Tools.Schema.Sql.Build.SqlTask​​Host.OnCreateCustomSchemaData(System.String,System.Collections.Generic.Dictionary`2)'访问方法'Microsoft.Data.Tools.Components.Diagnostics.SqlTracer.ShouldTrace(System.Diagnostics.TraceEventType)'失败."

"C:Program Files (x86)MSBuildMicrosoftVisualStudiov12.0SSDTMicrosoft.Data.Tools.Schema.SqlTasks.targets(513,5): Error: MSB4018: The "SqlBuildTask" task failed unexpectedly. System.MethodAccessException: Attempt by method 'Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(System.String, System.Collections.Generic.Dictionary`2)' to access method 'Microsoft.Data.Tools.Components.Diagnostics.SqlTracer.ShouldTrace(System.Diagnostics.TraceEventType)' failed."

有人有什么想法吗?我今天早上所做的就是从源代码管理中提取最新的更改.我看不出这会如何扰乱实际的 MSBuild 过程,而且最后签到的人根本没有任何问题.

Anyone got any ideas? All I did this morning was pull down the latest changes from source control. I can't see how that would mess up the actual MSBuild process, and the guy who checked in last doesn't have any issues at all.

推荐答案

事实证明问题出在 Visual Studio Update 3 上.我卸载并重新安装了 VS 2013 到 Update 2,然后重新安装了 Data Tools,现在它可以完美运行.

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.

这篇关于Visual Studio 2013:数据库项目 MSBuild 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-03-28 19:53:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/738957.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   数据库   项目   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!