@@ -115,7 +115,13 @@ public static void Generate(string rootDir, Quantity[] quantities)
115
115
var sb = new StringBuilder ( $ "{ quantity . Name } :". PadRight ( AlignPad ) ) ;
116
116
117
117
GeneratePackageConfig ( projectPath , quantity . Name ) ;
118
- GenerateNuspec ( projectPath , quantity , MathNuGetVersion ) ;
118
+
119
+ GenerateNuspec (
120
+ projectPath ,
121
+ quantity ,
122
+ MscorlibNuGetVersion ,
123
+ MathNuGetVersion ) ;
124
+
119
125
GenerateUnitType ( sb , quantity , Path . Combine ( outputUnits , $ "{ quantity . Name } Unit.g.cs") ) ;
120
126
GenerateQuantity ( sb , quantity , Path . Combine ( outputQuantitites , $ "{ quantity . Name } .g.cs") ) ;
121
127
GenerateProject ( sb , quantity , projectPath ) ;
@@ -151,11 +157,19 @@ private static void GeneratePackageConfig(string projectPath, string quantityNam
151
157
var content = GeneratePackageConfigFile ( quantityName ) ;
152
158
File . WriteAllText ( filePath , content , Encoding . UTF8 ) ;
153
159
}
154
- private static void GenerateNuspec ( string projectPath , Quantity quantity , string mathNuGetVersion )
160
+ private static void GenerateNuspec (
161
+ string projectPath ,
162
+ Quantity quantity ,
163
+ string mscorlibNuGetVersion ,
164
+ string mathNuGetVersion )
155
165
{
156
166
string filePath = Path . Combine ( projectPath , $ "UnitsNet.NanoFramework.{ quantity . Name } .nuspec") ;
157
167
158
- var content = new NuspecGenerator ( quantity , mathNuGetVersion ) . Generate ( ) ;
168
+ var content = new NuspecGenerator (
169
+ quantity ,
170
+ mscorlibNuGetVersion ,
171
+ mathNuGetVersion ) . Generate ( ) ;
172
+
159
173
File . WriteAllText ( filePath , content , Encoding . UTF8 ) ;
160
174
}
161
175
0 commit comments