Skip to content

Build in pipeline DevOps cannot access file sometimes #3

Answered by saucecontrol
RobbeSchepens asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't seen that before, but the path in your error message looks odd since the .xml file mentioned is in the same folder as the .csproj rather than in the obj or bin output folders.

Is it possible your project sets the DocumentationFile property to just the XML file name? That would make it relative to the project and would cause problems when multi-targeting since multiple MSBuild instances run in parallel and would be accessing the same path. The preferred solution is to omit the DocumentationFile property and simply set <GenerateDocumentationFile>true</GenerateDocumentationFile>. In that configuration, MSBuild will set the path automatically and will create a separate file per targ…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by saucecontrol
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on December 10, 2020 18:50.