Skip to content

Commit 3415e3c

Browse files
authored
Fix nanoframework packages not publishing all packages. (#1625)
Nuspecs are there, but most are not published. It is missing for my usages, I have fixed the script hopefully. Please someone review, and merge, and make stable patch release. Thank you.
1 parent 5db5782 commit 3415e3c

14 files changed

+7
-812
lines changed

Build/build-pack-nano-nugets.psm1

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,13 @@
22
$nugetOutDir = "$root\Artifacts\NuGet"
33
$toolsDir = "$root\.tools"
44
$nuget = "$toolsDir\NuGet.exe"
5+
$nugetsToProcess = (Get-ChildItem -Path "$root\UnitsNet.NanoFramework\GeneratedCode\" -Filter *.nuspec -r | % { echo $_.FullName });
56

67
function Invoke-BuildNanoNugets {
7-
8-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Duration\UnitsNet.NanoFramework.Duration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
9-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricCurrent\UnitsNet.NanoFramework.ElectricCurrent.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
10-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricPotential\UnitsNet.NanoFramework.ElectricPotential.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
11-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricResistance\UnitsNet.NanoFramework.ElectricResistance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
12-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Frequency\UnitsNet.NanoFramework.Frequency.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
13-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Illuminance\UnitsNet.NanoFramework.Illuminance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
14-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Length\UnitsNet.NanoFramework.Length.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
15-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Pressure\UnitsNet.NanoFramework.Pressure.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
16-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Ratio\UnitsNet.NanoFramework.Ratio.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
17-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\RelativeHumidity\UnitsNet.NanoFramework.RelativeHumidity.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
18-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Temperature\UnitsNet.NanoFramework.Temperature.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
19-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\VolumeConcentration\UnitsNet.NanoFramework.VolumeConcentration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
20-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Power\UnitsNet.NanoFramework.Power.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
21-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Density\UnitsNet.NanoFramework.Density.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
22-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Mass\UnitsNet.NanoFramework.Mass.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
23-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Speed\UnitsNet.NanoFramework.Speed.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
24-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\MassConcentration\UnitsNet.NanoFramework.MassConcentration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
25-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Angle\UnitsNet.NanoFramework.Angle.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
26-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\MagneticField\UnitsNet.NanoFramework.MagneticField.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
27-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Acceleration\UnitsNet.NanoFramework.Acceleration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
28-
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Level\UnitsNet.NanoFramework.Level.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
29-
8+
Foreach ($nuspecFile in $nugetsToProcess)
9+
{
10+
& $nuget pack "$nuspecFile" -Verbosity detailed -OutputDirectory "$nugetOutDir"
11+
}
3012
}
3113

3214
export-modulemember -function Invoke-BuildNanoNugets

Common/UnitRelations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"AreaMomentOfInertia.MeterToTheFourth = Volume.CubicMeter * Length.Meter",
1414
"double = SpecificEnergy.JoulePerKilogram * BrakeSpecificFuelConsumption.KilogramPerJoule",
1515
"DynamicViscosity.NewtonSecondPerMeterSquared = Density.KilogramPerCubicMeter * KinematicViscosity.SquareMeterPerSecond",
16-
"ElectricCharge.AmpereHour = ElectricCurrent.Ampere * Duration.Hour",
1716
"ElectricCurrent.Ampere = ElectricCurrentGradient.AmperePerSecond * Duration.Second",
17+
"ElectricCharge.AmpereHour = ElectricCurrent.Ampere * Duration.Hour",
1818
"ElectricPotential.Volt = ElectricCurrent.Ampere * ElectricResistance.Ohm",
1919
"Energy.Joule = ElectricPotential.Volt * ElectricCharge.Coulomb",
2020
"Energy.Joule = EnergyDensity.JoulePerCubicMeter * Volume.CubicMeter",
@@ -73,8 +73,8 @@
7373
"SpecificEnergy.JoulePerKilogram = Speed.MeterPerSecond * Speed.MeterPerSecond",
7474
"SpecificWeight.NewtonPerCubicMeter = Acceleration.MeterPerSecondSquared * Density.KilogramPerCubicMeter",
7575
"Speed.MeterPerSecond = Acceleration.MeterPerSecondSquared * Duration.Second",
76-
"TemperatureDelta.DegreeCelsius = TemperatureChangeRate.DegreeCelsiusPerSecond * Duration.Second",
7776
"TemperatureDelta.DegreeCelsius = TemperatureGradient.DegreeCelsiusPerKilometer * Length.Kilometer",
77+
"TemperatureDelta.DegreeCelsius = TemperatureChangeRate.DegreeCelsiusPerSecond * Duration.Second",
7878
"Torque.NewtonMeter = ForcePerLength.NewtonPerMeter * Area.SquareMeter",
7979
"Torque.NewtonMeter = Length.Meter * Force.Newton",
8080
"Torque.NewtonMeter = RotationalStiffness.NewtonMeterPerRadian * Angle.Radian",

UnitsNet.NanoFramework/GeneratedCode/LapseRate/LapseRate.nfproj

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

UnitsNet.NanoFramework/GeneratedCode/LapseRate/UnitsNet.NanoFramework.LapseRate.nuspec

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

UnitsNet.NanoFramework/GeneratedCode/LapseRate/packages.config

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

UnitsNet.NanoFramework/GeneratedCode/Quantities/LapseRate.g.cs

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

0 commit comments

Comments
 (0)