-
Notifications
You must be signed in to change notification settings - Fork 89
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
The command "dotnet paket restore" excited with code -532462766
on a fresh SAFE template
#621
Comments
I've definitely seen this error code before. Last time it was to do with missing paket.references from the Shared directory causing Paket to use the wrong version of FSharp - this is now fixed as of 8 months ago. Maybe these will help diagnose the issue:
|
Duplicate of #612, thanks for your report @Freymaurer! the other issue has a workaround in the discussion |
@baronfel ok. I've found some more information on this. TLDR: If you I suspect it's something that's changed since 8.0.206 that has somehow broken Paket. Here are some steps to reproduce:
module Server
[<EntryPoint>]
let main _ = 0
I don't always get a stack trace but when I do, it's this: dotnet watch � Started
Determining projects to restore...
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neut
ral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Reflection.RuntimeAssembly.GetType(QCallAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, Objec
tHandleOnStack type, ObjectHandleOnStack keepAlive, ObjectHandleOnStack assemblyLoadContext)
at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name, Boolean throwOnError)
at System.StartupHookProvider.CallStartupHook(StartupHookNameOrPath startupHook)
at System.StartupHookProvider.ProcessStartupHooks()
C:\Users\IsaacAbraham\code\safeFoo\.paket\Paket.Restore.targets(171,3): error MSB3073: The command "dotnet paket restore" exited with
code -532462766. [C:\Users\IsaacAbraham\code\safeFoo\src\Server\Server.fsproj] Also tagging @forki as it could relate to Paket. Update 1I've just observed that the "workaround" of calling it from a different folder does not work for |
Hello there - just went to update my Mortgage app and hit exactly this! Great timing haha |
FYI my temp workaround was to just add |
ooooh that's interesting |
I was even thinking to add that to the template anyway because it's rarely needed anyway as part of watch run. |
experiencing the same error on mac os/x
and the @isaacabraham workaround above of pinning the .net sdk in global.json to 8.0.204 works. |
I've rerun the failing test thread above and both .NET SDK 8.0.400 and 9.0.100-rc.1 work like a charm - I'd highly suggest moving to those feature bands. As it is, this is a regression only on the 8.0.3xx branch from what I can see. |
I'm on 401 and still seeing it. I've also determined that the issue ONLY occurs with the Sdk.Web SDK, not the "regular" one. |
I came across this error when trying to upgrade .NET6 and .NET7 Safe stack apps to .NET8. With the help of an old Senior Dev., these are the steps that I have been taking to successfully upgrade to .NET8:
These are the steps that have worked for me at least. Yours might look slightly different. |
This worked for me dotnet/sdk#43468 (comment) |
this issue is resolved by #634 |
Hey guys, i never encountered this error before, but we wanted to setup a SAFE project for a new colleague and we got an error
The command "dotnet paket restore" excited with code -532462766
. We tested this also for a fresh SAFE stack and still the issue persists. I have no idea why this issue happens. We "solved" it by removing paket and using simple dotnet dependencies but this is obviously no real solution.This is not my machine, but i will try to answer asap if you want more information on this. But i do not expect you to solve this obscure issue. Just wanted to let you know.
We also tried running
dotnet watch run src/Server/Server.fsproj
without fake with the same result and tried building the projects which worked just fine.The machine uses:
The text was updated successfully, but these errors were encountered: