Your project does not reference ".NETCoreApp,Version=v6.0" framework. Add a reference to... - C#