使用TFS 2010构建Sql项目 - 错误MSB4023

时间:2012-05-30 16:16:01

标签: sql msbuild tfs2010

在我们的项目中,我们还有一个SQL项目,以便我们将所有内容保持在源代码管理之下。我已经在项目中添加了两个sproc,现在我在中收到了以下构建错误,但项目在本地构建和部署良好。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.Common.targets(92,18): 
error MSB4023: Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(FullPath)" cannot be applied to the path "Schema Objects\Schemas\<Schema Name>\Programmability\Stored Procedures\<sprocName>

有什么想法吗?

1 个答案:

答案 0 :(得分:6)

乍一看,似乎构建失败了,因为构建路径超过260个字符。

我首先看一下路径长度。根据您的设置,有几种解决方案。

如果项目升级,我之前看到过这个错误。

您使用的是什么数据库项目版本?

您可以检查以确保构建服务器正在针对您在本地使用的正确版本编译VSDB项目的源。 I bring this up because the new database tools might be trying to upgrade your project.

希望这有帮助。

Team Build and 260+ Character Paths

Windows Naming Files, Paths, and Namespaces