Added property to conditionally enable/disable spec generation.

Resolves RDTask #1166304 - Support .NET builds without Hydra generator access
There is a related PR in Hydra.