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
bolero-app template using Bolero.dll (0.15.18) throws could not load Elmish 3.1.0.0 dll exception #180
Comments
I tried installing 3.1.300 explicitly and get the same issue. It seems to be independent of the SDK version I've tried to get this working on a variety of platforms (Windows 10, Windows WSL Ubuntu-18.04, and Ubuntu-20.04 on VirtualBox). It seems any non-Mac target I try gives the same issue with the This does all work on my macbook, where I have 3.1.301 and 3.1.302 installed.
I'm out of ideas for today for a Windows-based platform
|
Same issue here. I got it working (on a Mac): dotnet new -i Bolero.Templates
# disable hot reload
dotnet new bolero-app --hotreload=false -o MyApp
# install Elmish 3.1.0.0
cd MyApp/src/MyApp.Client
dotnet add package Elmish --version 3.1.0.0
cd ../MyApp.Server
dotnet add package Elmish --version 3.1.0.0
# start the server
dotnet run If you have installed it with Hot Reload enabled already, you can fix it by commenting out the last line in override this.Program =
let bookService = this.Remote<BookService>()
let update = update bookService
Program.mkProgram (fun _ -> initModel, Cmd.ofMsg GetSignedInAs) update view
|> Program.withRouter router
// #if DEBUG
// |> Program.withHotReload
// #endif
|
@naartjie THANK YOU! This workaround works for Windows 10. Thank you again! |
Cool @davedawkins, I'm glad that works on Windows too. I had a go at a PR in #181, but not sure that's all that's needed to fix the dependency. Also with hot reloading, not sure what is broken there. Maybe someone else reading this knows what's up there. |
This is fixed in Bolero 0.15.23 / Bolero.HotReload 0.15.4. Thanks everyone for the report, investigation and PR! |
What a great response. Thanks everyone, very much appreciated |
After updating the template and running
|
I think I got the same and fixed it by updating to the latest .NET Core
3.1.8.
…On Sun, 20 Sep 2020 at 12:46, Marcin Jekot ***@***.***> wrote:
After updating the template and running dotnet new bolero-app -o MyApp, I
am getting a different error now:
(Bolero 0.15.23 and Bolero.HotReload 0.15.4)
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#180 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALZ4GFTYHXKIFNKR5PILN3SGXTRPANCNFSM4RO35BXA>
.
|
Thanks @Arlorean!! Updating to 3.1.8 did the trick 🙌 I'm up and running on a vanilla |
I ran the getting started commands with the latest .NET Core SDK installed (3.1.402) on Windows 10:
When I navigate to http://localhost:5000 I get this error in the console window:
Here is the information from dotnet --info showing the platform, sdks, frameworks installed etc.:
Looking at Bolero.dll (0.15.18) in dotPeek show it has a dependency on Elmish 3.1.0.0 but the package only mentions Elmish 3.0.0.0 which might be why it's not finding the dll that Bolero.dll expects. When I add Elmish 3.1.0.0 as a nuget package explictly I get a different error, so I've not yet found a workaround:
The text was updated successfully, but these errors were encountered: