.dotnet problem when packaging project

Hi Ilari, Welcome to the Forums,

You might just need to restart your PC.

If you install the version of dotnet from this link and restart your PC is the problem resolved?