Hi,
If you getting error after adding after adding Microsoft.NET.Test.Sdk Nuget package to project reference you can just add
<GenerateProgramFile>false</GenerateProgramFile>
property in Project PropertyGroup in your .csproj file like screenshot. This will prevent multiple Main function conflict error.