Why does my DB project's .dbmdl file change even when I make no changes to the project?

后端 未结 3 1822
时光取名叫无心
时光取名叫无心 2021-01-17 13:30

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

相关标签:
3条回答
  • 2021-01-17 13:58

    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.

    0 讨论(0)
  • 2021-01-17 14:01

    If you delete the .dbml file, it is rebuilt without errors or warnings, so I think it's just a cache file for references, intellisense, etc. I'm going to exclude it from source control.

    0 讨论(0)
  • 2021-01-17 14:05

    See related question here. The .dbmdl file is unique per user (and some kind of cache, as said above) and so the right solution is indeed to exclude it from source control.

    0 讨论(0)
提交回复
热议问题