Skip to content
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

Explicit DocumentationFile=path instead of GenerateDocumentationFile=true leads to build race #1599

Open
nguerrera opened this issue Sep 20, 2017 · 2 comments
Milestone

Comments

@nguerrera
Copy link
Contributor

nguerrera commented Sep 20, 2017

Previously, C# projects would set an explicit intermediate path for the documentation file. This leads to using the same intermediate path for different TFMs that are built in parallel. We implemented GenerateDocumentationFile=true, but users porting existing projects might not know about it.

While the fix is simple (use GenerateDocumentationFile), the error is intermittent and doesn't at all hint at the fix: "cannot write to obj\Debug\Something.xml: already in use".

We should detect when the DocumentationFile is going to be written to the intermediate output path minus TFM in a multi-targeted project and issue an error. Alternatively, we could implement a fixup to insert the TFM in to the DocumentationFile path.

See also:

@KalleOlaviNiemitalo
Copy link

@vlada-shubina, did you close this by mistake? d8bb6c2 seems to relate to dotnet/templating#1599 and not to this #1599.

@vlada-shubina vlada-shubina reopened this Aug 5, 2022
@vlada-shubina
Copy link
Member

@vlada-shubina, did you close this by mistake? d8bb6c2 seems to relate to dotnet/templating#1599 and not to this #1599.

yes, it was incorrectly closed. I will check what else might be affected shortly

JL03-Yue pushed a commit that referenced this issue Mar 19, 2024
…505.2 (#1599)

[main] Update dependencies from dotnet/arcade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants