microsoft / microsoft/ai-dev-gallery
[BUG] GenerateText sample has syntax error; won't compile
Open
@haoliuu is already working on this.
Since Mar 18, 2026.
bug
sample
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
The code exported for the "Generate Text" sample has an obvious syntax error that prevents it from being compiled.
To Reproduce
Steps to reproduce the behavior:
- Run AI Dev Gallery
- Go to "Samples" on the left rail.
- Go to "Text" and then "Generate Text".
- Export the sample (button in top-right).
- Open sample in VS.
- Try to compile.
Expected Behavior
Sample cleanly compiles (and executes).
Actual Behavior
Missing semi-colon and other issues; see screenshot.
Screenshots
Please complete the following information:
- App Version: Version 0.5.5.0 from Microsoft Store
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.