Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use old dotnet embedded resource convention #1374

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

smartguest
Copy link
Contributor

@smartguest smartguest commented Jan 27, 2022

The changes to dotnet caused the embedded localization resources file to not be recognized properly.

In order to fix this, for every part of sqltoolsservice that has embedded localization strings, I set the EmbeddedResourceUseDependentUponConvention flag to false to go back to the old behavior pre bump.

See here for the issue: https://docs.microsoft.com/en-us/dotnet/core/compatibility/msbuild

This fixes #1372

and its associated issues:

microsoft/azuredatastudio#17967

microsoft/vscode-mssql#17221

@smartguest smartguest changed the title Use old dotnet embedded resource convention flag Use old dotnet embedded resource convention Jan 27, 2022
@Charles-Gagnon
Copy link
Contributor

I can't seem to repro this error myself - do you know why that is?

@smartguest
Copy link
Contributor Author

smartguest commented Jan 27, 2022

@Charles-Gagnon I'm not sure, but on a regular installation of ADS, if you try to run this query:

SELECT * FROM sys.databases WHERE name = 'master

The missing resources error message shows up, instead of the correct malformed string error.

Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah there we go, I had tried one of the other ones and didn't seem to repro it but that does indeed break for me too.

@smartguest smartguest merged commit a98c266 into main Jan 27, 2022
@smartguest smartguest deleted the alex/fixfordotnetembeddedresources branch January 27, 2022 21:48
nofield pushed a commit that referenced this pull request Jul 19, 2022
* use old dotnet embedded resource convention flag

* fixed positioning

* another tab fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants