Debugger can not inspect values: Error Type is defined in Assembly that is not referenced, but project reference is there.
Hello community
I have some troubles by using the Debugger in my Blazor WASM Application in Rider. In my Project I used all my Models in a separate ClassLibrary in the same solution as my Blazor WASM Project. I added also project reference to my Models project where all the Types are defined. I am able to compile and run the project without errors, Models.dll files will be also updatet in the bin folder of my Blazor WASM project.
But if I want to use debugger and set a breakpoint somewhere in my program, I can not see the values of that variable which is a type defined in my Models project.
I get the tooltip: Type is defined in Assembly that is not referenced. You must add a reference to assembly Models.
I understand the error but since I have already defined a project reference and the compiler is able to compile and run the project, I can not understand why the debugger has troubles to get this reference.
I did already Rider update, Restart program, remove reference and add it again …
I am using:
MacBook Pro M3
Build #RD-242.23726.100, built on October 22, 2024
Can someone help me to solve this issue?
Thanks in advance
Sam
Please sign in to leave a comment.
I test a similar usage as you mentioned in the latest 2024.3, but didn't see the problem reproduced.
If the problem persist in the last version, could you please share some code sample or a minimal reproducible solution?
You can upload the file to our server and share the ID.