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

Unable to restore nupkg due to missing System.Runtime.InteropServices.RuntimeInformation.dll #178

Open
johnloh85 opened this issue Jun 5, 2024 · 1 comment

Comments

@johnloh85
Copy link

Hi, when I view the source code in VS2022 upon loading the VS solution I was prompted to fix the package but I get this error message "An error occurred while trying to restore packages. Could not find a part of the path 'C:\Users\xxx\Downloads\Recurring-Integrations-Scheduler-v.3.4.0\Recurring-Integrations-Scheduler-v.3.4.0\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\runtimes\unix\lib\netstandard1.1

Any idea?

image

@finnjin
Copy link

finnjin commented Sep 7, 2024

I have the similar problem when restoring the System.Runtime.InteropServices.RuntimeInformation.dll.
I got the error meesage like this:

 Cannot find path 'C:\Users\xxx\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\runtimes\unix\lib\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll' because it does not exist.

I finally found it's due to the path is too long. After going to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem and set the LongPathsEnabled to 1, the problem did not happened again

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

2 participants