Skip to content

fix: Correct formatting in setup.ps1 output messages#506

Open
77victor wants to merge 1 commit intomicrosoft:mainfrom
77victor:patch-1
Open

fix: Correct formatting in setup.ps1 output messages#506
77victor wants to merge 1 commit intomicrosoft:mainfrom
77victor:patch-1

Conversation

@77victor
Copy link
Copy Markdown

Fixed the parse error in setup.ps1 by removing non-ASCII dash characters that were being misread by Windows PowerShell

Fixed the parse error in setup.ps1 by removing non-ASCII dash characters that were being misread by Windows PowerShell
@github-actions
Copy link
Copy Markdown

👋 Thanks for contributing @77victor! We will review the pull request and get back to you soon.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates setup.ps1 to avoid Windows PowerShell parse issues by replacing non-ASCII dash characters in user-facing console output.

Changes:

  • Replace an em dash (—) with a standard hyphen (-) in the setup banner message.
  • Replace an em dash (—) with a standard hyphen (-) in the prerequisites status message when az is missing.

$ErrorActionPreference = "Stop"

Write-Host "`n=== Generative AI for Beginners .NET Automated Setup ===" -ForegroundColor Cyan
Write-Host "`n=== Generative AI for Beginners .NET - Automated Setup ===" -ForegroundColor Cyan
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change replaces em dashes in output strings, but setup.ps1 still contains a non-ASCII em dash in the header comment (currently on line 2: "setup.ps1 — Automated setup..."). If Windows PowerShell is misreading non-ASCII characters due to file encoding, the parse issue may persist until that remaining em dash is also replaced (or the file encoding is adjusted consistently).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants