-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 9 dotnet format Azure DevOps hang #1119
Comments
I have no idea why that would be. It's conceivable that the msbuild targets that NB.GV adds to your projects are executed during nuget restore, which dotnet format runs. But as you're well aware, that doesn't generally cause a hang. In fact I've never seen nb.gv hang. I see you've already turned on You may want to file a bug against |
You are seeing the full diagnostic logs, I cannot get more, only 1 csproj, very simple. Usually after this it would log editorconfig paths. Logging seems very sparse for dotnet format, are they even calling msbuild? don't know... Are you using it with net9.0 in CI on Azure DevOps? |
I guess the diagnostic log switch is not passed on to msbuild, which they do invoke (or NB.GV would never have any opportunity to have an impact.) Yes, I'm using .NET 9 SDK on CI in Azure DevOps and calling In my case, I'm executing that step on linux. The Windows agent skips it (just to avoid redundancy). |
We use GitVersioning for a dotnet project and have without issue for some time. But when upgrading to .NET 9 we suddenly saw
dotnet format --verify-no-changes
hanging forever when running in CI. Not when run manually or locally. After lots of bisecting and removing stuff, we have isolated this towhich is included in
Directory.Build.props
. If this is removes the hang disappears. Onlydotnet format
hangs. No logging output gives any details as to why, but it appears to occur just before dotnet format shows effective editorconfig files for each project. CI output is:at which point the task hangs for 60 minutes until Azure DevOps cancels the job.
Presumably, GitVersioning must be doing something during dotnet format that causes the hang and for some reason then only for new .NET 9 SDK perhaps.
The text was updated successfully, but these errors were encountered: