-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
error MSB3491: Could not write lines to file roslyn\artifacts\obj\Microsoft.Build.Tasks.CodeAnalysis\Release\Microsoft.Managed.Core.CurrentVersions.targets because it is being used by another process #45842
Comments
@dotnet/product-construction Can you look at this failure? It seems unrelated to the changes in the corresponding PR. |
Seems odd to me that this path is missing a TargetFramework value.
That seems like it's bound to have a race condition in a multi-targeted build Reading |
Hmm ... how can we make this work then? <Target Name="GenerateCompilerVersionTargetsFile"
Outputs="$(CompilerVersionTargetsFileIntermediatePath)"> Part of the reason it's set outside the target is so that we can have a proper |
Outputs without inputs doesn't do what you think. It still regenerates this every time. Using an item worked without much refactoring. I'll put up a PR. Also, it looks like binlog's double write detection doesn't catch WriteLinesToFile. Seems like a feature we can add there too. |
I was looking at that too. I suspect it's because the option Is there a case we're missing here @rainersigwald where this can be used correctly? |
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=912429&view=logs&j=af161a59-3ba0-595e-b1dd-589f209b7277
Build error leg or test failing: VMR Vertical Build Validation / Windows_DevVersions_x64 / Build
Pull request: #45806
Error Message
Fill the error message using step by step known issues guidance.
Output:
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=912429
Error message validated:
[error MSB3491: Could not write lines to file Microsoft.Managed.Core.CurrentVersions.targets
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/9/2025 10:19:46 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: