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

[NETE2ESDK] 'The .NET runtime architecture' doesn't work when using the "Find Path" command. #1984

Closed
v-xiaofchen opened this issue Oct 15, 2024 · 3 comments · May be fixed by #1974
Closed

Comments

@v-xiaofchen
Copy link

v-xiaofchen commented Oct 15, 2024

Describe the bug.

'The .NET runtime architecture' doesn't work when using the "Find Path" command.

Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

Reproduction Steps

1.Download X64 SDK from https://dotnet.microsoft.com/en-us/download/dotnet and install.
2.Open VS Code and Run the 'Sample: Find the.NET on the PATH' command.
3.Changing the .NET SDK architecture to X86 or even an invalid architecture and then press ENTER
4.observer

Expected Behavior

It should not find anything

Exceptions & Errors (if any)

Always returns the .NET X64 installation path regardless of the architecture entered when using the "Find Path" command.
Image

Note

This issue does not repro on X64 runtime
Image

.NET Install Tool Version

2.2.0

Your operating system? Please provide more detail, such as the version and or distro above.

N/A

VS Code Version

1.94.2

@v-xiaofchen v-xiaofchen changed the title [NETE2ESDK] [MAC-X64] Always returns the .NET X64 installation path regardless of the architecture entered when using the "Find Path" command. [NETE2ESDK] Always returns the .NET X64 installation path regardless of the architecture entered when using the "Find Path" command. Oct 15, 2024
@NicoleWang001
Copy link
Member

NicoleWang001 commented Oct 15, 2024

The same behavior on Win Arm64, it always get .NET Arm64 installation path whatever the architecture is X64, X86 or Arm64
Image

@v-xiaofchen v-xiaofchen changed the title [NETE2ESDK] Always returns the .NET X64 installation path regardless of the architecture entered when using the "Find Path" command. [NETE2ESDK] 'The .NET runtime architecture' doesn't work when using the "Find Path" command. Oct 15, 2024
@nagilson
Copy link
Member

This was a typo in the code, thanks for finding it. Should be fixed in the new build.

@v-xiaofchen
Copy link
Author

Fixed and closed it.

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

Successfully merging a pull request may close this issue.

3 participants