Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Could not load file or assembly 'Cosmos.Debug.Kernel',Version =10.0.0.0

Open penguin-number-123 opened this issue 4 years ago • 8 comments

Have you checked Github Issues for similar errors? Yes Exception Post the exception returned by Visual Studio System.IO.FileLoadException: Could not load file or assembly 'Cosmos.Debug.Kernel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983'. PiniguinDOS C:\Users\Mumuji\source\repos\Penguin OS\PiniguinDOS\Error 1

** VS Output Logs ** 1>Error : error occurred: System.IO.FileLoadException: Could not load file or assembly 'Cosmos.Debug.Kernel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=5ae71220097cb983'. 1> at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly) 1> at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) 1> at Cosmos.IL2CPU.IsolatedAssemblyLoadContext..ctor(IEnumerable1 assemblyPaths) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\IsolatedAssemblyLoadContext.cs:line 43 1> at Cosmos.IL2CPU.CompilerEngine..ctor(ICompilerEngineSettings aSettings) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\CompilerEngine.cs:line 96 1> at Cosmos.IL2CPU.Program.RunCompilerEngine(String[] aArgs, Action1 aLogMessage, Action1 aLogError) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\Program.cs:line 64 1> at Cosmos.IL2CPU.Program.Run(String[] aArgs, Action1 aLogMessage, Action`1 aLogError) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\Program.cs:line 47 1>IL2CPU task took 00:00:00.1068218 1>Done building project "PiniguinDOS.csproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== To Reproduce Install newest userkit, and create a new kernel, then run.

Screenshots image image

Context Before posting please confirm that the following are in order [T] Both Cosmos VS Extensions are installed [ ] In the NuGet Package Manager "Include prerelease" is selected [ ] The Cosmos NuGet package store is selected (NOT nuget.org) in 'Manage NuGet Packages' [ ] The Cosmos NuGet packages are installed

Using latest userkit Originally after updating vs2019 could not detect cosmos, though it is a project option. The file was recreated and the problems went away, however this one persists.

penguin-number-123 avatar Feb 10 '22 01:02 penguin-number-123

image image

Cosmos seems to be installed, I cannot confirm with NuGet as I have not used it before.

penguin-number-123 avatar Feb 10 '22 01:02 penguin-number-123

image here is output logs

penguin-number-123 avatar Feb 10 '22 01:02 penguin-number-123

After a fresh install, the error persists.

penguin-number-123 avatar Feb 10 '22 01:02 penguin-number-123

image After using NuGet package Manager, this is what the installed things are None of them are version 10, not sure why it is asking for v10.

penguin-number-123 avatar Feb 10 '22 03:02 penguin-number-123

Can you clear the nuget cache?

quajak avatar Feb 10 '22 15:02 quajak

Ok so here are instructions on how to fix it.

  1. Go to tools -> NuGet Package Manager -> Package Manager Settings -> Clear cache
  2. Go to tools -> NuGet Package Manager -> Package Manager Settings -> Manage NuGet packages for solution
  3. uninstall the "Cosmos debug kernel"
  4. Click on browse
  5. Near the top right corner where it says "Manage Packages for Solution", click on that and choose Cosmos Local Package Feed
  6. Choose "Include prerelease"
  7. Reinstall "Cosmos.Debug.Kernel"
  8. right click the something.sln file, then choose rebuild It should work after that. If you get any missing files, rerun the installer and do the steps again.

penguin-number-123 avatar Feb 11 '22 11:02 penguin-number-123

Sadly that didn't fix it for me

foxt avatar Feb 11 '22 12:02 foxt

Still got the same issue.

olifurz avatar Feb 12 '22 17:02 olifurz