'I can't create a report with an object datasource in Visual studio 2019

I am trying to create a simple report in my vs2019 with a class as the data model

  1. I have a public class named 'persona'
  2. I have a new wpf applicacion (.net 5)
  3. I've create a new report (RDLC file)
  4. I try to use a class as a data template to design the report When I try to reference the class as the data source object, the class is not visible for the datasourtce wizard as you can see in the image below enter image description here

If put that class in a diferent project, a class library project, I got a different error, as you can see in the images below enter image description here

And whe I press the Finish button I got this new erro: enter image description here

There is no clue about what to do,... does anyone have any idea ? What Am I doing wrong?



Solution 1:[1]

I have same problem. Try to use netstandard2.0 for model library, it works for me (vs2019 netcoreapp3.1)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitry A. Kalianov