Problem after update to Visual Studio 17.8
JeromeL
Posts: 10 Bronze 4
Hi.
We've just updated Visual Studio to the latest version, 17.8. Since then, the plugin crashes on build/cleanup or even opening the SCA tool window.
The error ->
MSBUILD: Error: : Method not found: 'Boolean Microsoft.Data.SqlClient.SqlConnectionStringBuilder.get_Encrypt()'.: Method not found: 'Boolean Microsoft.Data.SqlClient.SqlConnectionStringBuilder.get_Encrypt()'.
VS Version : 17.8
SCA extension version : 4.6.23312.2442
Thanks
We've just updated Visual Studio to the latest version, 17.8. Since then, the plugin crashes on build/cleanup or even opening the SCA tool window.
The error ->
MSBUILD: Error: : Method not found: 'Boolean Microsoft.Data.SqlClient.SqlConnectionStringBuilder.get_Encrypt()'.: Method not found: 'Boolean Microsoft.Data.SqlClient.SqlConnectionStringBuilder.get_Encrypt()'.
VS Version : 17.8
SCA extension version : 4.6.23312.2442
Thanks
Tagged:
Answers
Redgate SQL Change Automation 4.6.23319.2501
Just installed the update to Visual Studio 2022 v17.8.0 (required for .NET 8 and C# 12) and SQL Change Automation Extension is not working any more, which means I'm unable to build my project. Please provide an updated version as soon as possible!
Kind regards
Sorry you're seeing this issue with SCA and Visual Studio, a colleague has already escalated this issue through for the attention of our development team and we hope to have a further update for you soon.
Appreciate it may not be possible, but SSMS has been suggested as a workaround while we await news from our development team on VS.
Tom Claringbold | Redgate Software
Have you visited our Help Center?
any update on this? I have the same issue
Redgate SQL Change Automation 4.6.23319.2501
I tried an update to
Redgate SQL Change Automation 4.6.23326.2589
but it's still the same
In release note for VS 17.8
SQL
- Upgraded Microsoft.Data.SQLClient (MDS) from version 3.0 to version 5.0 in SQL Server Data Tools (SSDT) Read more
- Two new fields are added to Connect dialogue box
- The Encrypt property now defaults to true (enabled) when connecting. If a server does not have a trusted certificate configured, the use of Trust Server Certificate set to true may be appropriate. For more details, please refer to the documentation
Ref https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#sqlThere's a workaround disabling encryption:
1. In ConnectionStringBuilder, Method Create, remove property Encrypt
2. In ConnectionStringFactory, Method ParseConnectionString, pass false to parameter to SetEncryptConnection
You can use e.g. dnSpy to change this.
With Visual Studio 17.8, there were some changes regarding Connection encryption. It is enabled by default now, and some properties changed from value to object types.
See
https://learn.microsoft.com/en-us/sql/ssdt/connect-to-an-existing-database-in-sql-server-data-tools?view=sql-server-ver16#EncryptTrustServerCertificate
All information is provided without guarantee and liability
Any updates on this?
The developers are still working on a fix for this issue. If you're able to downgrade Visual Studio to 17.7 as a temporary workaround, that should get you up and going in the meantime.
I appreciate your patience on this and will let you know of any updates that come our way.
https://forum.red-gate.com/discussion/88504/will-sca-support-visual-studio-2022
Also, one of my tickets is in development since June. We can't use latest Change Autimation plugin because of a Newtonsoft.Json dependency error. This was once fixed and in a later version re-introduced.
Very unstable for us to use CA, we are not happy ...
Apologies for the delay on resolution for this, I'm really sorry for the disruption this has caused. Our development team have a couple blockers on release of a new version with a fix for this that they are actively working on.
At present, our advice is still to downgrade Visual Studio to 17.7 as a workaround.
Sorry I don't have better news but we hope to have further update for you soon.
Tom Claringbold | Redgate Software
Have you visited our Help Center?
I believe that this is a critical bug and it doesn't have the right priority.
If you now go to Extensions > Manage Extensions > Update - Redgate SQL Change Automation 2022
Any issues with this please let us know.
Tom Claringbold | Redgate Software
Have you visited our Help Center?