SSDT:"Identifiers must include at least one name (for example, MyTable)"

SSDT: "Identifiers must include at least one name (for example, MyTable)"

这两天一直在找这个错误的根源,没能...

我的问题是一样的:Link

当我构建我的数据库项目时,出现以下错误:

"Identifiers must include at least one name (for example, MyTable)"

构建输出:

C:\Program Files (x86)\MSBuild.0\bin\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\Objetivo.Rango.BancoDados.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\Vinicius\AppData\Local\Temp.NETFramework,Version=v4.5.SqlClrAttributes.cs" Loading project references... Loading project files... Building the project model and resolving object interdependencies... Validating the project model... Writing model to D:\WorkspaceObjetivoSistemas\ObjetivoSistemas\Rango\RamoPrincipal\Rango\Objetivo.Rango.BancoDados\obj\Debug\Model.xml... Writing create script to Rango_Create.sql... C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(546,5): Error: : Identifiers must include at least one name (for example, MyTable). Done building project "Objetivo.Rango.BancoDados.sqlproj" -- FAILED.

我终于解决了我的问题。

.refactorlog 文件中存在错误...

这个错误信息太模糊了,不足以知道问题出在哪里...

我通过使用 Refactor 菜单工具重命名一些列,进行了一些其他更改,然后通过 TFS 撤消所有更改,不小心重现了这一点。

撤消后 .refactorlog 文件中保留了一些原始重构项。一旦我将它们从 xml 中删除,发布就会按预期进行。