Add VisualStudio 2022 Package
I created a working version for VisualStudio 2022.
- Changed Solution for VisualStudio 2022.
- Changed Target Frameworks to .NET 4.8
- Added VS2022Lib which references VisualStudio 2022 extensibility assemblies.
- Added Package for VisualStudio 2022.
- Had to fix the version numbers of the references projects.
Open Questions:
- For 3) The files might be linked from the SSMSLib project.
- I would like to omit 5. I have no Idea of the build process or how versions are set
Looking forward hearing from you!
Bump!
It's really too bad this project appears to be abandoned. Thank you @lennybacon for updating this package; I'm installing it in my dev system because I use PoorSQL all the time. In fact, I train everyone that works for me that it's a requirement to run all SQL code through it (with certain settings) before checkin. So having it as a package is GREAT.
Yes, thank you @lennybacon for the update. It's much appreciated. Our team has also installed it in VS 2022 from your fork.
@TaoK It would be great if you could accept the pull request and get it into the marketplace, but I understand that open source can be thankless work. Either way, thanks for the effort you've put into it. This really is an excellent SQL formatter.
I'd really like to use this but I have no experience installing VS plugins from source. Can anyone help with a list of steps to get this working in my IDE?
@Grendagon
- Just download the sources.
- Install Visual Studio 2022
- Open the Project
- Compile the sources ([CTRL]+[SHIFT]+[B])
- Find the
*.vsixin the output folder. - Double click the
*.vsixto install
I have thrown up the port onto marketplace - https://marketplace.visualstudio.com/items?itemName=mick9956.PoorMansTSqlFormatter
@mj6robinson thank you. A merge would be even better but this will allow to just install and use it.
+1
My path to a working install for SSMS 20 was: 2. Deinstall [sic] the Microsoft C++ 2015-2022 Redistributable and also Microsoft C++ 2015 Redistributable 3. Install PoorMansTSqlFormatterSSMSPackage.Setup.1.6.16.msi 4. Install Microsoft Visual Studio 2015 Shell (Isolated) (found [vs_isoshell.exe] in the Visual Studio 2015 SDK. The cat file on the official MS VS website doesn't work) 5. Copy the PKGDEF File to "C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE\Extensions\PoorMansTSqlFormatterSSMSPackage.pkgdef"