When using a version of dotnet that is too old, errors will occur. Instead verify dotnet version first.