gpt4 book ai didi

git - Visual Studio 数据库项目 *.refactorlog 文件是否属于源代码管理?

转载 作者:IT王子 更新时间:2023-10-29 00:42:24 27 4
gpt4 key购买 nike

我正在使用 git(通过适用于 Windows 的 GitHub)并且我正在使用 latest .gitignore for Visual Studio from GitHub

我注意到我的 <ProjectName>.refactorlog文件包含在我的提交中。

.refactorlog 文件是否属于源代码管理?

最佳答案

如果您打算跨模式移动数据库对象,则 .refactorlog 应该在源代码管理中。

参见:MSDN: Move a Database Object to a Different Schema

相关部分:使用重构日志保留您的意图

When you move a database object to a different schema, an entry is added to the refactoring log for your database project. When you deploy your changes, this log helps ensure that the corresponding object in the target environment is renamed as you intended. Otherwise, the existing object would be dropped, and an object would be added with the new name. The log is maintained in an XML file that is named ProjectName.refactorlog. You check this file in to version control when you check in the other files that compose your database project. The ProjectName.refactorlog file contains only information about refactoring operations that require special handling during deployment.

关于git - Visual Studio 数据库项目 *.refactorlog 文件是否属于源代码管理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21636546/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com