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

String interpolation with nested quotes breaks Razor blocks in Blazor WebAssembly #8760

Closed
1 task done
707wk opened this issue May 25, 2023 · 2 comments
Closed
1 task done
Assignees
Labels
area-blazor area-compiler Umbrella for all compiler issues

Comments

@707wk
Copy link

707wk commented May 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I write SQL in Blazor WebAssembly, Some filter are dynamic, for example
where TK004=INVLA.LA001 and TK018=INVLA.LA016 and TK017=INVLA.LA009 {(SelectedCostDocumentTypes != null && SelectedCostDocumentTypes.Count() > 0 ? $@"and TK001 in ({String.Join(",", from item in SelectedCostDocumentTypes select $"'{item}'")})" : "")}
but vs2022 prompt RZ1000
Snipaste_2023-05-25_18-33-52

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

.net6.0

Anything else?

No response

@javiercn javiercn transferred this issue from dotnet/aspnetcore May 25, 2023
@ghost ghost added the untriaged label May 25, 2023
@davidwengier davidwengier added the area-compiler Umbrella for all compiler issues label May 25, 2023
@chsienki chsienki added this to the 17.7 P3 milestone Jun 1, 2023
@ghost ghost removed the untriaged label Jun 1, 2023
@chsienki chsienki modified the milestones: 17.7 P3, 17.9 Planning Oct 11, 2023
@chsienki
Copy link
Member

@333fred Is this still an issue / does this fall into the bucket of 'it'll be fixed via the lexer work'?

@333fred
Copy link
Member

333fred commented Jul 11, 2024

Duplicate of #7084. This will be fixed by the lexer work.

@333fred 333fred closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor area-compiler Umbrella for all compiler issues
Projects
None yet
Development

No branches or pull requests

4 participants