Resolve the issue where Azure DevOps builds only publish the startup project by configuring MSBuild arguments or using dotnet publish for all solution projects.