1
votes

Hi I am working on a workshop where trying to add the my custom library in Client project but it is not referencing and showing warning as you can see in attached screen shot.

Could you please help

enter image description here

2
you can reference only Standard libraryAlexan

2 Answers

1
votes

In Blazor you can reference only .NET Standard library:

Blazor implements .NET Standard 2.1, which enables Blazor projects to reference libraries that conform to .NET Standard 2.1 or earlier specifications. .NET Standard is a formal specification of .NET APIs that are common across .NET implementations. .NET Standard class libraries can be shared across different .NET platforms, such as Blazor, .NET Framework, .NET Core, Xamarin, Mono, and Unity.

0
votes

I do something similar in my projects. It will be the dependencies of your db library. I had to upgrade my library from .net standard 2.0 to 2.1. then consolidate my packages.