From 69524975e3adbfb3aa0d37eed1b8818e94dc154c Mon Sep 17 00:00:00 2001 From: Nikolay Gekht Date: Fri, 10 Jan 2025 15:03:36 -0500 Subject: [PATCH] - update dependencies and nuspec generation process --- .../Gehtsoft.Measurements.Test.csproj | 12 ++++++------ Gehtsoft.Measurements/DecimalMeasurement.cs | 2 +- Gehtsoft.Measurements/Gehtsoft.Measurements.csproj | 2 +- doc/project.proj | 10 +++++----- nuget/config.xml | 6 ++++-- nuget/nuget.proj | 4 ++-- nuget/sign-cloud.bat | 3 +++ 7 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 nuget/sign-cloud.bat diff --git a/Gehtsoft.Measurements.Test/Gehtsoft.Measurements.Test.csproj b/Gehtsoft.Measurements.Test/Gehtsoft.Measurements.Test.csproj index c0c9d19..df2afa7 100644 --- a/Gehtsoft.Measurements.Test/Gehtsoft.Measurements.Test.csproj +++ b/Gehtsoft.Measurements.Test/Gehtsoft.Measurements.Test.csproj @@ -1,19 +1,19 @@ - net60 + net8.0 - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Gehtsoft.Measurements/DecimalMeasurement.cs b/Gehtsoft.Measurements/DecimalMeasurement.cs index f81f863..42affa1 100644 --- a/Gehtsoft.Measurements/DecimalMeasurement.cs +++ b/Gehtsoft.Measurements/DecimalMeasurement.cs @@ -323,7 +323,7 @@ public bool Equals(DecimalMeasurement other) [MethodImpl(MethodImplOptions.AggressiveInlining)] public int CompareTo(DecimalMeasurement other) { - decimal v1, v2, e; + decimal v1, v2; v1 = In(BaseUnit); v2 = other.In(BaseUnit); return v1.CompareTo(v2); diff --git a/Gehtsoft.Measurements/Gehtsoft.Measurements.csproj b/Gehtsoft.Measurements/Gehtsoft.Measurements.csproj index aebaf65..2427a88 100644 --- a/Gehtsoft.Measurements/Gehtsoft.Measurements.csproj +++ b/Gehtsoft.Measurements/Gehtsoft.Measurements.csproj @@ -10,7 +10,7 @@ - + diff --git a/doc/project.proj b/doc/project.proj index 8fd9981..d656d45 100644 --- a/doc/project.proj +++ b/doc/project.proj @@ -4,7 +4,7 @@ netstandard2.0 - + @@ -25,10 +25,10 @@ - - - - + + + + diff --git a/nuget/config.xml b/nuget/config.xml index a2e22fa..4604832 100644 --- a/nuget/config.xml +++ b/nuget/config.xml @@ -2,6 +2,7 @@ + Update dependencies. Add decimal measurements. Update dependencies. Add solid angle units. Fix comparison of very small values. Update dependencies, minor changes. @@ -11,13 +12,14 @@ Gehtsoft https://github.com/gehtsoft-usa/Gehtsoft.Measurements LGPL-2.1-or-later - Gehtsoft USA LLC 2016-2022 + Gehtsoft USA LLC 2016-2024 + docs/README.md Measurements math, manipulations and unit conversion library - + \ No newline at end of file diff --git a/nuget/nuget.proj b/nuget/nuget.proj index 7f293e0..dbf24fd 100644 --- a/nuget/nuget.proj +++ b/nuget/nuget.proj @@ -1,12 +1,12 @@  - net46 + net472 - + diff --git a/nuget/sign-cloud.bat b/nuget/sign-cloud.bat new file mode 100644 index 0000000..e735db2 --- /dev/null +++ b/nuget/sign-cloud.bat @@ -0,0 +1,3 @@ +rem @ECHO off +forfiles /m *.nupkg /c "cmd /c smctl sign --fingerprint %digicert-fingerprint% --input @path" +rem for /f %f in ('dir /b *.nupkg' ) do smctl sign --keypair-alias %digicert-alias% %f