Error when creating project

Error when creating project

C:\Users\user>dotnet new umbraco -n MyProject --force
The template "Umbraco Project" was created successfully.

Processing post-creation actions...
Restoring C:\Users\user\MyProject\MyProject.csproj:
  Determining projects to restore...
C:\Users\user\MyProject\MyProject.csproj : error NU1100: Unable to resolve 'Umbraco.Cms (>= 12.0.0)' for 'net7.0'. Pack
ageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Micros
oft Visual Studio Offline Packages, nuget.org, Package source.
C:\Users\user\MyProject\MyProject.csproj : error NU1100: Unable to resolve 'Microsoft.ICU.ICU4C.Runtime (>= 68.2.0.9)'
for 'net7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\lib
rary-packs, Microsoft Visual Studio Offline Packages, nuget.org, Package source.

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/112888-error-when-creating-project