本文是小编为大家收集整理的关于Readyroll : 在使用VSTS构建时获得错误。漂移分析。由于DriftOptionBlockDataLoss=True,这些更改将不会被应用。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
一些脚本是手动迁移的,而无需使用Readyroll脚本.现在,任何新的推动Dev分支都会失败,以下错误:
db \ db.sqlproj(0,0):错误:漂移分析:这些更改将不会应用,因为drifteroptionblockdataloss = true(有关详细信息,请参见'obj \ resion \ drease \ db_resync.sql').已经检测到可能导致下表对象的数据丢失的更改:dbo.info.
处理'msbuild.exe'以代码'1'而退出.
相同的本地效果很好,但在VST中创建的构建中失败. 成功建造需要做什么?
推荐答案
我正在使用Readyroll Core,而不是Pro Edition,因为此功能是VSTS扩展版的Pro Edition的一部分.请参阅有关Readyroll和 fiff Report and diff recorts and diff正确脚本(第4节),其中此参数DriftOptionBlockDataLoss和其他相关参数DriftOptionDropMissingObjects在构建管道中建立.
问题描述
Some of the scripts were migrate manually without using readyroll script. Now any new push to dev branch fails with following error :
DB\DB.sqlproj(0,0): Error : Drift analysis: These changes will NOT be applied because DriftOptionBlockDataLoss=True (see 'obj\Release\DB_ReSync.sql' for details). Changes have been detected that could result in data loss for the following table object(s): dbo.Info.
Process 'msbuild.exe' exited with code '1'.
Same works fine on local but fails in the build created in VSTS. What needs to be done for successful build ?
推荐答案
I am using ReadyRoll Core and not the Pro edition as this functionality is part of the Pro edition of the VSTS extension. Please see the Red Gate documentation pertaining to ReadyRoll and the Diff Report and diff correct script (Section 4), where this param DriftOptionBlockDataLoss and other related params DriftOptionDropMissingObjects are established in the build pipeline.