Arun Singh
Arun Singh

Reputation: 647

Blazor webassembly unable to add reference of library project inside the Client project

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

Upvotes: 3

Views: 3501

Answers (2)

Alexan
Alexan

Reputation: 8635

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.

Upvotes: 2

Brian Parker
Brian Parker

Reputation: 14553

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.

Upvotes: 0

Related Questions