-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't reliably build on .NET 8 on large multi proc machines #14721
Comments
I reproduced this with .NET 7 too (SDK 7.0.404) |
Which version because from recently we only target net8.0 (OC preview version). Otherwise in our github actions we needed to build all TFMs one after each other (by specifying the TFM). As I remember it was failing (but not always) when files are outputed concurrently. Didn't know about the Can you try with only I will try asap. Edited: Just tried, it works but yes I only have 4 cores. |
@jtkech I believe we updated SourceLink to 8.0.0 in YesSql, it was 1.1.1 before. (The failing step mentions a conflict ot yessql.sourcelink file) |
I have the same issue with different files. 16 cores. @jtkech your machine might not be fast enough to reproduce the problem. Not specific to sourcelink though. |
Going back to a commit that targets 6/7/8 I can repro with Example:
|
On main, which only targets net8.0, I did three rounds of
Each time the |
Please try the branch |
Seems to work for me now |
FWIW we had the similar "warning MSB3026: Could not copy DLLs" happening with CI builds running |
You can also repro this issue by debugging in VS and VS Code at the same time. Happens to me all the time, forgetting I'm running VS Code, then I need to stop one of the debuggers. |
I am investigating the problem with some engineers from the SDK. I have a reliable repro and binlog files that shows some information about the issue. |
Describe the bug
Can't reliably build on .NET 8 on large multi proc machines. dotnet build always fails with "The process cannot access the file" on some random objs (likely a .targets file issue)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: