.net: error CS1009: Unrecognized escape sequence
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 267
- Avg merge
- 1d 25m
- Merged PRs (30d)
- 14
Description
### Describe the bug
When the docstrings for elements contain a `\`, the .NET compiler doesn't like it
### Expected Behavior
Don't fail compilation
### Current Behavior
This PR introduces backslashes that cause a jsii compilation failure: https://github.com/aws/aws-cdk/pull/28737/files
### Reproduction Steps
-
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### SDK version used
-
### Environment details (OS name and version, etc.)
-
Contributor guide
Research direction
Start by examining the linked pull request diff to identify where the docstrings containing backslashes enter the .NET output. Reproduce the jsii compilation failure, then verify that the generated .NET code compiles successfully when those docstrings include backslashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100