Fix a problem you got 2 option 1.Changing regional format to USA the error not occur. 2.Using a global.json on your solution root folder pointing to a previous .NET SDK makes the error disappear.
{ "sdk": { "version": "9.0.204" } }