DacFx icon indicating copy to clipboard operation
DacFx copied to clipboard

sqltargets has hidden property that looks for sqltargets in wrong place

Open simonsabin opened this issue 2 years ago • 0 comments

All versions of sqltargets

Steps to Reproduce:

  1. Try and run a build WITHOUT the SSDT VS installed
  2. The build always builds projects even when nothing has changed.

The problem is that there is a property SsdtTargetsParentPath that is only used by the MSBuildAllProjects propertygroup which is used to define the inputs for the build. On a machine where there sqlTargets are not in $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT the CoreBuild can't find the files and thus runs the CoreBuild, which then causes SqlBuild to trigger.

SsdtTargetsParentPath if required should really reference SQLDBExtensionsRefPath if set

DacFX

simonsabin avatar May 05 '22 21:05 simonsabin