Skip to content

Commit c5c6e51

Browse files
angularsentmilnthorp
authored andcommitted
Merge generator scripts for WRC and NetFramework (#520)
* Merge generator scripts for WRC and NetFramework Handle WRC special cases in code generator scripts instead of in generated code. This removes all the #if sections and merges the "Common" partial code back into each of the WRC and NetFramework files so it is in one place and easy to read. - Arrange huge quantity code into #regions, easier to navigate - Move code generation into functions, easier to read - Add Types.psm1 with types for intellisense on parsed JSON* - Require PowerShell 5.1 (for classes) * VS and VSCode struggle with intellisense when importing types with 'using module', this is relatively new and will probably improve later. * Remove generated common code for quantities * generate-code.bat: Set workdir to scripts folder Needed for 'using module' in powershell to work, it can't have variables. * Regen * Fix WRC compile errors Fix build warns about xmldoc * Fix for code changes
1 parent 86b2efc commit c5c6e51

File tree

106 files changed

+5674
-64573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5674
-64573
lines changed

Common/GeneratedCode/Quantities/Acceleration.Common.g.cs

Lines changed: 0 additions & 801 deletions
This file was deleted.

Common/GeneratedCode/Quantities/AmountOfSubstance.Common.g.cs

Lines changed: 0 additions & 823 deletions
This file was deleted.

Common/GeneratedCode/Quantities/AmplitudeRatio.Common.g.cs

Lines changed: 0 additions & 602 deletions
This file was deleted.

Common/GeneratedCode/Quantities/Angle.Common.g.cs

Lines changed: 0 additions & 822 deletions
This file was deleted.

Common/GeneratedCode/Quantities/ApparentEnergy.Common.g.cs

Lines changed: 0 additions & 581 deletions
This file was deleted.

Common/GeneratedCode/Quantities/ApparentPower.Common.g.cs

Lines changed: 0 additions & 603 deletions
This file was deleted.

Common/GeneratedCode/Quantities/Area.Common.g.cs

Lines changed: 0 additions & 801 deletions
This file was deleted.

Common/GeneratedCode/Quantities/AreaDensity.Common.g.cs

Lines changed: 0 additions & 537 deletions
This file was deleted.

Common/GeneratedCode/Quantities/AreaMomentOfInertia.Common.g.cs

Lines changed: 0 additions & 647 deletions
This file was deleted.

Common/GeneratedCode/Quantities/BitRate.Common.g.cs

Lines changed: 0 additions & 1086 deletions
This file was deleted.

0 commit comments

Comments
 (0)