How to properly specify DocumentationFile
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
Hi all,
I am using the latest preview of MsBuild 15 and I have a multitarget project file targeting both `net40` and `netstandard1.6`.
I am struggling with specifying correctly.
For any path I would specify, the resultant xml file after the build will be both in that path and two target output directories.
For instance, if I specify
```
doc.xml
```
Then the xml file will be generated both in my project dir and `bin\net40` and `bin\netstandard1.6`.
I need those xml documentation files only in my `bin\net40` and `bin\netstandard1.6` directories. How can I achieve that?
Also, with the current behavior, it is not clear which documentation file is copied to my project dir, because those xml documents can differ for two targets.
In earlier project versions I used to specify documentation xml path separately for `Debug` and `Release` build configurations with paths like `bin\Debug\doc.xml`, but with the newest MsBuild 15 it is possible to do multitargeting and the number of such paths double if I specify the dir for all possible combinations of target and build configuration.
Is there any generic good way to specify documentation file path once and get it to the right output places only?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.