Open mauroservienti opened 5 years ago
@mauroservienti The reason the MSBuild setting was added is that it prevents the script generation targets from running and the task assembly from even being loaded at all during compile time.
Examining the attribute to know not to run script generation means the script generation code needs to run first.
Thanks @bording. I guess a better approach could be:
SqlPersistence offers an option to control scripts generation via an assembly level attribute. When using the attribute it seems natural to disable scripts generation byu setting values to
false
:When all values are set to false the expected behavior is that the script generation is disabled. That's not the case, build fails with the following non-guiding error:
The solution is to disable script generation using MSBuild:
I fail to see why that's needed, or at least I'd expect a much more guiding error.