Share via

Project Reference Error Blazor

Prathamesh Shende 511 Reputation points
2022-02-02T18:42:08.88+00:00

I created the razor class library project use Ardalis SmartEnum to create a blazor component.
Smart Enum works fine in RCL Project and Also .razor component created fine with error. After I give reference to my Blazor WASM Project The show me error.

getting this error:
The type 'SmartEnum<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Ardalis.SmartEnum,

I tried to add the Ardalis Smart Enum nuget package into my Blazor WASM but it show Exclamation icon on dependancy folder and it resolved. by cleaning the project or deleting the bin/obj folders. So whats the exact Issue?

both project developed in .Net6
Help Me....

Developer technologies | .NET | Blazor

1 answer

Sort by: Most helpful
  1. Prathamesh Shende 511 Reputation points
    2022-02-03T11:07:48.31+00:00

    I think there is bug,
    If I add Ardalis.SmartEnum before project referance then its working.

    still dont understand what's the exact issue?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.