Skip to content

Interrupt a build with pre-build event script #37

@ghost

Description

I have a windows batch script and also a powershelI script, both running during a solution pre-build event. These scripts are responsible for checking some pre-conditions before proceeding with the solution build.
In some cases were these conditions are not satisfied, I would like to stop/block the build process and show an error on Visual Studio's Output Window.
I've been trying hard to find the right scripting commands for vsSolutionBuildEvent, but no success yet... Would you please tell me if that is possible to achieve, and which commands/settings should I use for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions