"dotnet build" hangs when called from test
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
Adding a little context here because it will be needed to understand:
I am developing this: https://github.com/taori/Amusoft.DotnetNew.Tests
A project which allows the testing of templates which can be used with dotnet new.
Unfortunately at the stage where i got to testing the execution of dotnet build on the scaffolded project that process will end up hanging in CI (github actions). I tried reproducing the cause of it when running dotnet test on a windows 11 host (my own machine), an ubuntu VM and initially thought that it is in an ubuntu issue, but the first run of the tests on ubuntu VM just took longer ( a couple minutes instead of 15~seconds), then finished just as fast on windows for consecutive runs.
I am unable to figure out why this does not work, but i would be happy if anyone has any ideas.
from a process pov what is happening is: dotnet test is running multiple processes
- dotnet new install
- dotnet new {tempate creation}
- dotnet restore
- dotnet build
### Exceptions (if any)
### Further technical details
- dotnet info in CI can vary
- no IDE used. it happens in CI
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.