microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

SqlAzureDacpacDeployment cannot find DacFramework 14.0.3691.3 #4542

Closed kogir closed 7 years ago

kogir commented 7 years ago

The latest Data-Tier Application Framework uses a new registry key to record its installation location. The current script is unaware and cannot find it.

New Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Data-Tier Application Framework\InstallLocation

The newest version (as of issue submission) can be downloaded here.

I'd submit a PR but can't (after trying for a while) find a way to test it with VSTS online, and wouldn't want to submit untested code.

kogir commented 7 years ago

I was able to work around it for now by manually creating the old registry key it looks for. It seems it's been invalid for quite some time, since none of the DacFx 16. or 17. versions write it anymore.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\DACFramework]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\DACFramework\CurrentVersion]
"Version"="14.0.3691.3"
chshrikh commented 7 years ago

@kogir this has been fixed and will be available with next deployment, approx after one month from now