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

[NETSDKE2E][Loc]"dotnet new search" doesn't work with locale characters. #7155

Closed
vdanche opened this issue Oct 17, 2023 · 3 comments
Closed
Assignees

Comments

@vdanche
Copy link
Member

vdanche commented Oct 17, 2023

  1. Install net8 RTM: 8.0.100-rtm.23516.5(runtime- 8.0.0-rtm.23511.16) on locale OS(e.g Chinese).
  2. dotnet new list to check all template and we can see "控制台应用" template.
    image
  3. dotnet new search with locale characters.
    dotnet new search "控制台应用"

Expected Result:
The template with "控制台应用" named can be displayed.

Actual Result:
The template with "控制台应用" named could not be displayed.
image

ENU:
dotnet new search "Console App" works well.
image

German(repro)
image

Note:
dotnet new list "控制台应用" works well.
image

dotnet --info:
C:\Users\v-ainigao>dotnet --info
.NET SDK:
Version: 8.0.100-rtm.23516.5
Commit: f328064753
Workload version: 8.0.100-manifests.e06b4289

运行时环境:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100-rtm.23516.5\

已安装 .NET 工作负载:
Workload version: 8.0.100-manifests.e06b4289
没有要显示的已安装工作负载。

Host:
Version: 8.0.0-rtm.23511.16
Architecture: x64
Commit: 256bf22a3d

.NET SDKs installed:
8.0.100-rtm.23516.5 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-rtm.23512.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-rtm.23511.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.0-rtm.23512.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@vdanche vdanche changed the title [NETSDKE2E]"dotnet workload search" doesn't work with locale characters. [NETSDKE2E][Loc]"dotnet workload search" doesn't work with locale characters. Oct 17, 2023
@NicoleWang001
Copy link
Member

This issue is also repro on .NET 7.0.402

@marcpopMSFT marcpopMSFT changed the title [NETSDKE2E][Loc]"dotnet workload search" doesn't work with locale characters. [NETSDKE2E][Loc]"dotnet new search" doesn't work with locale characters. Oct 17, 2023
@marcpopMSFT marcpopMSFT transferred this issue from dotnet/sdk Oct 17, 2023
@NicoleWang001
Copy link
Member

This bug is also repro on developer command prompt.
image

@NicoleWang001
Copy link
Member

It should be not a valid bug. Because ‘dotnet new search’ is searching for the templates in NuGet.org, not in the installed templates. And I tried searching a template name including Chinese characters ‘快速搭建’, it works well
image

@vdanche vdanche closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants