Cosmos
Cosmos copied to clipboard
System.IO.FileLoaderException: Could not load file or assembly Cosmos.Debug.Kernel
Please help.
Are you using devkit/userkit?
Latest userkit.
Hello @realrandombeans, could you try this userkit build? https://anonfiles.com/hfgbd4Idx4/CosmosUserKit-20220214-vs2019_exe
I had the same problem and tried downloading that user kit and I am still having the same problem.
Clear the nuget cache and try again.
already tried that
Are the nuget packages installed from the devkit or from the userkit?
user
Can you post the entire build log?
Can you post your csproj file?
https://www.file.io/BP57/download/uICvMrA2DRx9
Thanks, can you show which versions of the nuget packages you have installed?
how?
it's V3
In the nuget package manager it should show you which version is installed for each package.
i has same problem while i trying clean nuget cache popups error i reinstalled cosmos seveal times, but it won't work
Hello @realrandombeans, could you try this userkit build? https://anonfiles.com/hfgbd4Idx4/CosmosUserKit-20220214-vs2019_exe
this are not work too
logs (my system lang is russian, sorry for non-english words):
Сборка начата…
1>------ Сборка начата: проект: test, Конфигурация: Debug Any CPU ------
1>test -> C:\VSrepos\test\test\bin\Debug\net5.0\test.dll
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(IEnumerable`1 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, Action`1 aLogMessage, Action`1 aLogError) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\Program.cs:line 64
1> at Cosmos.IL2CPU.Program.Run(String[] aArgs, Action`1 aLogMessage, Action`1 aLogError) in C:\Development\Cosmos\IL2CPU\source\Cosmos.IL2CPU\Program.cs:line 47
1>IL2CPU task took 00:00:00.1355167
1>Сборка проекта "test.csproj" завершена с ошибкой.
========== Сборка: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========
maybe just reinstall user kit ..?
already been tried 4 times
The issue is that the local nuget cache on the machine still contains old versions which have a higher version number than the new correct packages. To fix this please clear the local nuget cache and then check which nuget package versions are installed for the cosmos packages.
I cleared all local caches (including cosmos) and re-installed cosmos, still the same error
In the nuget package manager in visual studio can you show the list of all available versions for the cosmos nuget packages?
Did you mess around with any of the COSMOS configuration or settings?
No, just installed it and it doesn't work. It worked before on my old laptop using windows 10. I am using windows 11. Could this be the problem?
Cosmos should be working fine in win11
That isn't really fixing my problem
In the nuget package manager in visual studio can you show the list of all available versions for the cosmos nuget packages?
Can you please post this information? Otherwise we can triage and fix this issue.
I think those versions are still from February. There should be newer ones available.
I just reinstalled cosmos yesterday though