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

ERROR: "The system cannot find the file specified." #3105

Closed
wally96334 opened this issue Oct 17, 2023 · 4 comments
Closed

ERROR: "The system cannot find the file specified." #3105

wally96334 opened this issue Oct 17, 2023 · 4 comments
Labels

Comments

@wally96334
Copy link

Steps to reproduce

  1. Downloaded ILSpy
  2. click Tools > ILSpy
  3. ERROR: "The system cannot find the file specified."

Error message shown

ERROR: "The system cannot find the file specified."

Copy and paste any error messages / relevant text and/or screenshot the incorrect behaviour.

Details

  • Product in use: e.g. ILSpy / ICSharpCode.Decompiler nuget package / VS extension
  • Version in use: e.g. 6.0.0 or a commit hash (use Help>About to see which ILSpy version you are using)
  • Any other relevant information to the issue, or your interest in contributing a fix.

I downloaded ILSpy for Visual Studio 2017 Community on Win 10 Pro system a moment ago. I click Tools > ILSpy, and get the following error message.

"The system cannot find the file specified."

This is a WPF application.

@wiz0u
Copy link

wiz0u commented Oct 21, 2023

I had this issue on my VS2019 install.
It was trying to launch
"%APPLOCALDATA%\Microsoft\VisualStudio\16.0_35831ab1\Extensions\vnjuvjez.kyc\x64\ILSpy\ILSpy.exe"
but the x64 folder does not exist.

I duplicated the extension files into a new x64 folder and it solved the issue.

Something must be wrong with ILSpy AddIn install and x64 systems.

@christophwille
Copy link
Member

That was the hint I needed:

string archPathSegment = "x64";

Only in VS2022 we copy to the subfolder

<VSIXSubPath>\x64\ILSpy\zh-Hans\</VSIXSubPath>

but not for the old extension:

<VSIXSubPath>\ILSpy\zh-Hans\</VSIXSubPath>

@christophwille
Copy link
Member

Once the actions run https://github.com/icsharpcode/ILSpy/actions/runs/6598796525 completes (roughly half an hour) please grab the VS2017-2019 vsix artifact and give it a try. Thanks!

@wiz0u
Copy link

wiz0u commented Oct 21, 2023

Tested. It works.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants