Enabled optimized worflow for handler code generation
When environment is development:
Hybrid approach that first tries to locate the types from the application assembly, but falls back to generating the code and dynamic type. Also writes the generated source code file to disk
On every other environment:
Never generate types at runtime, but instead try to locate the generated types from the main application assembly
Added a new dockerfile command for code generation
Added a new CI launch profile that sets the environment as CI. This profile is used by the code generation step
Configured app dependencies, such as Hangfire, to disable usage if environment is CI
This is required as the codegen step will run the app and it will fail if the app attempts a database connection
Detailed changes:
CI
launch profile that sets the environment asCI
. This profile is used by the code generation stepCI