Skip to content
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

Any way to disable the Xml generation? #59

Open
GeraldLx opened this issue Aug 6, 2020 · 1 comment
Open

Any way to disable the Xml generation? #59

GeraldLx opened this issue Aug 6, 2020 · 1 comment

Comments

@GeraldLx
Copy link

GeraldLx commented Aug 6, 2020

When I add the NuGet package a targets file is added to the project calling the commandline tool.
Is there any way to skip this step on certain conditions?
Basically enabling a build like this:
msbuild MyCmdletProject.csproj /p:XmlDoc2CmdletDocSkip=true

We use NCrunch for our tests, which works fine, but lets XmlDoc2CmdletDoc fail and in the end there is no reason to create the documentation for that case at all.

@ternag
Copy link

ternag commented Oct 4, 2021

NCrunch defines a build variable when it runs, so you can add a condition to the target in your project file like this:

<Target Name="Generate PowerShell help file" BeforeTargets="PostBuildEvent" Condition="$(NCrunch) != '1'">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants