microsoft / microsoft/ai-dev-gallery

[BUG] GenerateText sample has syntax error; won't compile

Open
#579 1 comment 0 reactions 1 assignee View on GitHub

@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:

  1. Run AI Dev Gallery
  2. Go to "Samples" on the left rail.
  3. Go to "Text" and then "Generate Text".
  4. Export the sample (button in top-right).
  5. Open sample in VS.
  6. Try to compile.

Expected Behavior
Sample cleanly compiles (and executes).

Actual Behavior
Missing semi-colon and other issues; see screenshot.

Screenshots

Image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.