microsoft / DacFx

SQL Server database schema validation, deployment, and upgrade runtime. Enables declarative database development and database portability across SQL Server versions and environments.
https://aka.ms/sqlpackage-ref
MIT License
292 stars 15 forks source link

SqlSchemaCompare target uses property names that are reserved #439

Open maciejw opened 2 months ago

maciejw commented 2 months ago

Steps to Reproduce:

  1. msbuild /t:SqlSchemaCompare /p:Source=path\to\dacpac1 /p:Target=(path\to\dacpac2 or connectionstring) project.sqlproj
  2. there is no compare output

Did this occur in prior versions? If not - which version(s) did it work in? I dont think this was working correctly ever.

this behaves as follows, no target is executed since /p:Target overrites /t: there is no way to set this parameter, the only way to pass the target is through scmp file passed through /p:SqlScmpFilePath

Source microsoft.build.sql\0.1.15-preview\tools\netstandard2.1\Microsoft.Data.Tools.Schema.SqlTasks.targets around line 900

I want to use compare this way because I intend to use AdditionalDeploymentContributors, to exclude some objects using their name not type and I dont think I can set this in a GUI version of a compare tool