Thanks for your answer.
I have regenerated the project files, rebuild the entire solution, delete the intermediate and saved folders, deleted the .vs folder and vsconfig file and then regenerated the project files. And all the times I get the same message.