I am seeing messages like this in my command line build for .NET projects when using dotnet.exe:
[project name]: Workload updates are available. Run 'dotnet workload list' for more information.
I can run Visual Studio Installer to update and will no longer see the messages. But each time there is an update, I will probably see these messages again. Is there a way to suppress this message to clean up my build output?
This issue is similar to Suppress workload update notification from dotnet run reported by other user previously. Looks like the issue was fixed https://github.com/dotnet/sdk/pull/22573. What is the version of your .NET SDK? I would suggest you confirm at above link to see if the issue reappears.
As a workaround, to disable the daily SDK check for updates, try to set the DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE
environment variable to true
.
For more information, please refer to .NET environment variables