Run a pre build step only once in solution. Dot NET Core

311 Views Asked by At

Is there a way to run a prebuild build target only once per solution build.

I want this target to build if any project in the solution is built. I would really prefer if this target can be kept in a directory build targets file.

Also is there a way to configure to run this target only in local development environment and not in CI environment?

0

There are 0 best solutions below