I was getting the following error while building my solution with VS2019 tools for msbuild
The "JavaScriptCompressorTask" task could not be loaded from the assembly Yahoo.Yui.Compressor.Build.MsBuild.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0....