My .NET Core was recently upgraded from 3.1.402 to 3.1.403; after this update, when i try to run my project with dotnet run
command, i'm receiving this message:
[MSBuild solution compiling events] - Error at file '/usr/share/dotnet/sdk/3.1.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets', from project '{my csproj file path}'; error associated with lines 424-0; Sender: MSBuild. Code error: MSB4018; message: 'The "CreateAppHost" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.NET.HostModel, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
I'm using Ubuntu 20.04; before the SDK upgrade the project was working fine. Is it some kind of bug from the new version of the .NET Core SDK?