Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 529
Arun Singh Avatar asked Nov 03 '25 02:11

Arun Singh


1 Answers

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.

like image 72
Alexan Avatar answered Nov 04 '25 17:11

Alexan