Powershell slow compared to MSBuild
Fugazzi8
Posts: 5 New member
After upgrading to SCA 4, my old msbuild scripts started acting strange, and I noticed there isn't a section in the documentation for MSBuild anymore. I've got everything working with the power shell scripts, but it about 10 times slower to do a deployment compared to msbuild deploy on build. Is there something i'm missing? It seems like maybe it's doing more validation and drift comparisons or something. Am I correct that msbuild is no longer supported?
Tagged:
Answers
You should be able to speed up your process by replacing Invoke-DatabaseBuild with the New-DatabaseProjectObject cmdlet: using this cmdlet skips schema validation during the build (it also disables Drift verification when deploying).
For example:
# Deploy to the database
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools