Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebToolsE2E][Aspire] When specifying a package version using the 'aspire add' command, words are accepted. #8349

Closed
Coleen17 opened this issue Mar 27, 2025 · 2 comments · Fixed by #8460
Assignees
Labels
Milestone

Comments

@Coleen17
Copy link

INSTALL STEPS

1.Clean machine: Win11 x64 ENU
2.Install SDK 9.0.202
3. Add dotnet9 feed for 9.2.0-preview.1
4. Install the latest Aspire 9.2.0-preview.1 templates
dotnet new install Aspire.ProjectTemplates::9.2.0-preview.1.25175.9 --force
5. Install aspire.cli tool.
dotnet tool install --global aspire.cli --prerelease --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json

REPRO STEPS

  1. Open CMD, create a folder using following commands:
mkdir aspire1
cd aspire1
aspire new
cd aspire1.apphost
aspire add
  1. Select what package you are using and specify the version.
  2. Type any words and press enter.

ACTUAL
Words are being accepted in the specifying a version.
Image

EXPECTED
Only number version is accepted.

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Mar 27, 2025
@mitchdenny mitchdenny self-assigned this Mar 27, 2025
@mitchdenny mitchdenny added this to the 9.2 milestone Mar 27, 2025
@mitchdenny
Copy link
Member

Thanks for reporting. We need to tighten up the input validation here.

@balachir balachir removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Mar 27, 2025
@mitchdenny mitchdenny linked a pull request Apr 1, 2025 that will close this issue
@Coleen17
Copy link
Author

Coleen17 commented Apr 2, 2025

I verified this issue using SDK 9.0.202 + Aspire 9.2.0-preview.1.25201.2. It doesn't reproduce this issue so closing this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants