CsQuery icon indicating copy to clipboard operation
CsQuery copied to clipboard

CsQuery.XML in build path

Open niveuseverto opened this issue 11 years ago • 7 comments

Is it possible to disable copying CsQuery.XML into build path?

niveuseverto avatar Apr 07 '14 21:04 niveuseverto

Not sure what you mean..

jamietre avatar Apr 08 '14 10:04 jamietre

I've added CsQuery.dll via NuGet package into my solution.

After build (in TargetDir) there is file CsQuery.XML. Is it possible to disable this behavior?

niveuseverto avatar Apr 08 '14 10:04 niveuseverto

Oh - you just need to disable XML doc generation - Project > Properties > Build and uncheck XML Documentation.

If you do this, you won't see any method/parameter documentation in visual studio.

jamietre avatar Apr 09 '14 22:04 jamietre

I have no Build properties for NuGet packages...

niveuseverto avatar Apr 10 '14 06:04 niveuseverto

If you are installing from nuget, you're going to get CsQuery.XML. It provides metadata for the API documentation. There's no way to change this behavior. Most people want this since it provides interactive API documentation in Visual Studio. I can't think of any downside in a development environment, and it will not be copied to production.

jamietre avatar Apr 10 '14 11:04 jamietre

If it really bothers you, it would be possible to set a Post-build event on your project using CsQuery to delete the XML file:

del "$(TargetDir)CsQuery.xml"

Or, delete all XML:

del "$(TargetDir)*.xml"

joelverhagen avatar Apr 10 '14 14:04 joelverhagen

Thank you. Already organizing post-build events...

niveuseverto avatar Apr 10 '14 15:04 niveuseverto