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

Cannot insert raw string literals in .razor files #11495

Closed
MarvinKlein1508 opened this issue Feb 14, 2025 · 2 comments
Closed

Cannot insert raw string literals in .razor files #11495

MarvinKlein1508 opened this issue Feb 14, 2025 · 2 comments

Comments

@MarvinKlein1508
Copy link

You cannot enter raw string literaly in .razor files. Neither in @code nor within methods itself. Any try results in not compiling code.

private string test =
    """
    Hello World
    """;

Please see this video for details:
https://github.com/user-attachments/assets/8dff2d8c-5432-44bc-914d-585b0c79300c

@davidwengier
Copy link
Member

Good timing on this one :)

https://devblogs.microsoft.com/dotnet/enhancing-razor-productivity-with-new-features/#roslyn-c#-tokenizer

This one I am going to close as a duplicate of #7084

@davidwengier davidwengier closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2025
@MarvinKlein1508
Copy link
Author

What a time to be alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants