poppastring / dasblog-core

The original DasBlog reimagined with ASP.NET Core
MIT License
473 stars 195 forks source link

dasblog-core init Fails #694

Closed knarfalingus closed 7 months ago

knarfalingus commented 9 months ago

Similar to issue #589, installing manually, I ran dasblog-core.exe init and got the error

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)

I downloaded the source, in the DasBlog.CLI project I changed dasblog-core.runtimeconfig.json to be

{ "runtimeOptions": { "tfm": "net8.0", "framework": { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } } }

built it, replaced the binaries and it seemed to work. Machine is a relatively new build so I do not have .NET 6 installed.

pamanes commented 9 months ago

Getting the same issue:

dotnet --list-sdks 8.0.100 [C:\Program Files\dotnet\sdk]

dotnet --list-runtimes Microsoft.AspNetCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

@knarfalingus your suggestion worked, thanks, after changing the config file to what you shared and running dotnet build I robocopied the files under DasBlog.CLI\bin\Debug\net8.0> to dasblog-core_8.0.1194\

poppastring commented 8 months ago

Thanks for reporting! Sorry for the late response. Tracking this down soon.

poppastring commented 7 months ago

Thanks for the feedback! I have released a new update.