This is a very annoying VS error, I\'m on VS 2019 16.8.1
I spend a lot of time fixing it:
Duplicate \'Compile\' items were included. The .NET SDK