Hi @Anonymous , Welcome to Microsoft Q&A,
In fact, both .net 6 and .net framework 4.8 in VS 2022 17.7.1 have been tested, and your situation does not appear.
You can choose to repair VS. Or try to use the '@' keyword to ensure that the string is read normally.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.