2

我刚刚尝试将 Visual Studio 2008 数据库项目升级到 VS2010,实际上它是一团糟。数百个警告,所有未解决的参考。似乎归结为 Visual Studio 不再了解架构名称(又名所有权)。例如,默认的 dbo 架构:

[$(MyDataBase)].dbo.MyTable

很好,但是:

[$(MyDataBase)].myschema.MyTable

给出了一个未解决的参考。它确实在VS2008中工作。

也是 dbo 的缩写,双点:

[$(MyDataBase)]..MyTable

不再起作用了。

在项目属性窗口中,我恢复了对正确服务器的引用(转换后丢失了),但这没有帮助。

这似乎很基本,但我不知道如何解决这个问题。任何帮助表示赞赏。

4

1 回答 1

0

There was same major changes between 2008 and 2010 version of Database project on structural perspective in solution e.g. Schemas folder contains subfolders for each schema including dbo.

Solution upgrade doing horrible mess in solution, maybe in SP1 this issue will be resolved.

I suggest to create new DB project and using Schema Compare add existing structure into the project.

于 2012-02-02T10:33:45.217 回答