-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unable to disable copying XML to output/bundle XML as embedded resource #16
Comments
I think I've got renaming the FinalDocFile working so it doesn't copy to the OutDir.
|
Yeah, the XML file is generated by the C# compiler at the same time it generates the assembly. I assume your current process must build twice so that the first build generates the file and then the second embeds it? InheritDoc's |
Don't need to build twice, following this. I'd imagine this target is just registering the resource at the start of the build, and then somehow the file exists at the time the assembly is generated. Whether these are distinct steps that InheritDoc could sit in between I don't know. |
Hmmm... I'm not sure how that would work. Both the XML doc file and the output assembly are produced by the |
Hi,
I'm looking to use your project to trim down the generated XML docs to just public symbols but I'm having trouble fitting it into my existing build.
My build sets CopyDocumentationFileToOutputDirectory to false and adds a new target that embeds the XML file (@(DocFileItem)) as an assembly resource, but I can't figure out how to do this with InheritDoc in the mix.
InheritDoc requires CopyDocumentationFileToOutputDirectory to be true (which it then sets to false and does the copy itself I believe) so I've been trying to modify DocFileItem/FinalDocFile to point to the intermediate build directory without much luck.
Obviously my embed target needs to run before the assembly is generated but I think InheritDoc is maybe set to run after that? Which would explain why changing the paths doesn't work.
Any thoughts on how I can achieve this? Many thanks
The text was updated successfully, but these errors were encountered: