In VS2019, I have MVC dotnet framework project and while doing dotnet build got the issue
error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild
error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files\dotnet\sdk\3.1.201\Microsoft.Build.Tasks.Core.dll".