为什么我的数据库项目的.dbmdl文件更改,即使我没有更改项目? [英] Why does my DB project's .dbmdl file change even when I make no changes to the project?

查看:355
本文介绍了为什么我的数据库项目的.dbmdl文件更改,即使我没有更改项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个很小但很奇怪的烦恼,似乎也发生在其他人(例如,查看SEDE的修订历史)。我有一个SQL Server 2008数据库项目在Visual Studio 2010中工作正常。当我提交/签到源代码控制,我被告知,我的数据库项目的 .dbmdl 文件已更改,即使我

I'm running into a small but weird annoyance that seems to be happening to other people, too (for example, check out the revision history of SEDE). I have a SQL Server 2008 database project in Visual Studio 2010 that works properly. When I go to commit/checkin to source control, I'm told that my DB project's .dbmdl file has changed, even when I've made no changes to the project!

我不知道是否通过构建我的解决方案触发了更改(它还包括一个ASP.NET MVC应用程序和一个单元测试项目)或通过简单地打开数据库项目,但是这是令人讨厌的,并在源代码控制中创建杂乱。

I'm not sure if the changes are triggered by building my solution (which also includes an ASP.NET MVC application and a unit test project) or by simply opening the DB project, but this is getting kind of annoying and is creating clutter in source control.

可以停止这些更改

Is it possible to stop these changes from occurring, or get rid of the .dbmdl file whatsoever?

推荐答案

我相信Visual Studio会在每次打开项目时序列化dbmdl文件。唯一可能的工作是保持项目开放。

I believe Visual Studio serializes the dbmdl file every time the project is opened. The only possible work around would be to keep the project open.

这篇关于为什么我的数据库项目的.dbmdl文件更改,即使我没有更改项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆