jamietre / CsQuery

CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.
Other
1.15k stars 249 forks source link

CsQuery.XML in build path #153

Open niveuseverto opened 10 years ago

niveuseverto commented 10 years ago

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

jamietre commented 10 years ago

Not sure what you mean..

niveuseverto commented 10 years ago

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?

jamietre commented 10 years ago

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.

niveuseverto commented 10 years ago

I have no Build properties for NuGet packages...

jamietre commented 10 years ago

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.

joelverhagen commented 10 years ago

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"
niveuseverto commented 10 years ago

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