Skip to content

Commit 6ab9547

Browse files
committed
Add info about folder structer and wiki
1 parent 08a6dcf commit 6ab9547

7 files changed

+49
-0
lines changed

UnitsNet/Scripts/Include-GenerateNumberExtensionsSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ function GenerateNumberExtensionsSourceCode($unitClass)
1010
// Changes to this file will be lost when the code is regenerated.
1111
// The build server regenerates the code before each build and a pre-build
1212
// step will regenerate the code on each local build.
13+
//
14+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
15+
//
16+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
17+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
18+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
19+
//
1320
// </auto-generated>
1421
//------------------------------------------------------------------------------
1522

UnitsNet/Scripts/Include-GenerateUnitClassEnumSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ function GenerateUnitClassEnumSourceCode($unitClasses)
88
// Changes to this file will be lost when the code is regenerated.
99
// The build server regenerates the code before each build and a pre-build
1010
// step will regenerate the code on each local build.
11+
//
12+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
13+
//
14+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
15+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
16+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
17+
//
1118
// </auto-generated>
1219
//------------------------------------------------------------------------------
1320

UnitsNet/Scripts/Include-GenerateUnitClassSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ function GenerateUnitClassSourceCode($unitClass)
3535
// Changes to this file will be lost when the code is regenerated.
3636
// The build server regenerates the code before each build and a pre-build
3737
// step will regenerate the code on each local build.
38+
//
39+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
40+
//
41+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
42+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
43+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
44+
//
3845
// </auto-generated>
3946
//------------------------------------------------------------------------------
4047

UnitsNet/Scripts/Include-GenerateUnitEnumSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ function GenerateUnitEnumSourceCode($unitClass) {
1010
// Changes to this file will be lost when the code is regenerated.
1111
// The build server regenerates the code before each build and a pre-build
1212
// step will regenerate the code on each local build.
13+
//
14+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
15+
//
16+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
17+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
18+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
19+
//
1320
// </auto-generated>
1421
//------------------------------------------------------------------------------
1522

UnitsNet/Scripts/Include-GenerateUnitSystemDefaultSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ function GenerateUnitSystemDefaultSourceCode($unitClasses)
88
// Changes to this file will be lost when the code is regenerated.
99
// The build server regenerates the code before each build and a pre-build
1010
// step will regenerate the code on each local build.
11+
//
12+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
13+
//
14+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
15+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
16+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
17+
//
1118
// </auto-generated>
1219
//------------------------------------------------------------------------------
1320

UnitsNet/Scripts/Include-GenerateUnitTestBaseClassSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ function GenerateUnitTestBaseClassSourceCode($unitClass)
1616
// Changes to this file will be lost when the code is regenerated.
1717
// The build server regenerates the code before each build and a pre-build
1818
// step will regenerate the code on each local build.
19+
//
20+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
21+
//
22+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
23+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
24+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
25+
//
1926
// </auto-generated>
2027
//------------------------------------------------------------------------------
2128

UnitsNet/Scripts/Include-GenerateUnitTestPlaceholderSourceCode.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ function GenerateUnitTestPlaceholderSourceCode($unitClass)
99
// Changes to this file will be lost when the code is regenerated.
1010
// The build server regenerates the code before each build and a pre-build
1111
// step will regenerate the code on each local build.
12+
//
13+
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
14+
//
15+
// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes.
16+
// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior.
17+
// Add Scripts\UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes.
18+
//
1219
// </auto-generated>
1320
//------------------------------------------------------------------------------
1421

0 commit comments

Comments
 (0)