Hi @Simone Marchetti ,
You could try to use the following methods:
- Right click the Project, choose "Clean" option first, then "Rebuild" the project.
- Close the VS 2019 first, then re-open the project.
- Try to use Scaffolding to add the View.
In the Controller action method, right click and choose the "Add View" option, then choose the Razor page with strongly-type Model, the screenshot as below:
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion