Hello! Every time I create a new Net Core console project ("Hello world") and add a new class, I get the NETSDK1022 error ("duplicated compile items"). I have already reinstalled Visual Studio 2019, probably deleted all possible files and imported the configuration from a properly functioning VS installation on another computer. In this case, nothing helps. When I add a new class then Visual Studio adds a section to the project file:
<Compile Include = "Class1.cs" />
which causes the error. If I delete it, the project will compile correctly. But I have to do this after adding each new class. In other VS installations, this section is not added. Why in this case VS adds this section? What settings can cause this? Thank you in advance for your answer.