I have build and extended the Static SQL Code Analysis Rules of SSDT projects. Its working perfectly in my local system by copying the class library DLL into "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140\Extensions" location.
Now, My challenge is to share this dll to others developer. How this can be easily shared ?. I don't want this one to be copied manually to the DAC extension folder by everyone.
It should be like a nuget package or an extension upon downloading of that should be installed in the user DAC extension folder.
Can anyone help me here ? How this can be achieved ?
I tried to create an VSIX Extension project and tried to install the custom rule dll into the "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140\Extensions" directory. But i failed to do so.
Post build event : copy "$(TargetDir)\TSqlRules$(TargetExt)" "$(ProgramFiles)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140\Extensions\TSqlRules$(TargetExt)" /y
Custom Rule DLL should be installed in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140\Extensions" directory.