sotsera / sotsera.blazor.toaster

A Toastr.js port to Blazor in pure .Net.
https://blazor-toaster.sotsera.com/
MIT License
130 stars 29 forks source link

TypeLoadException on server side dotnet core preview8 #24

Closed Gander7 closed 5 years ago

Gander7 commented 5 years ago

This is an awesome toast, unfortunately I'm having issues getting it to work via a package :(

dotnet --version -> 3.0.100-preview8-013656

Followed readme instructions for serverside:

No Build/Compiler Errors. Runtime error on run: Image from Gyazo Image from Gyazo

Raw Error: https://pastebin.com/R5D4aubU

I was able to replicate using a new project (dotnet new blazorserver).

ghidello commented 5 years ago

Hi, can you please try to install the library using the command dotnet add package Sotsera.Blazor.Toaster --version 1.0.0-preview.8.1?

I must update the installation instructions in the readme because the last library version is considered a prerelease and the command you used installs the last available release. Thanks for the heads up.

Gander7 commented 5 years ago

Works :) Thanks for the quick reply, this is a great resource.

The only other thing missing from the readme is a mention to add using using Sotsera.Blazor.Toaster.Core.Models; to Startup.cs for the Dependency injection configuration portion.

ghidello commented 5 years ago

@Gander7 Sorry for the late response. I added the using reference to the readme. Thanks for the suggestion!