15 Commits
1.5.0 ... 1.6.1

Author SHA1 Message Date
Matt Nadareski
98b930e231 Bump version 2025-09-01 15:31:18 -04:00
Matt Nadareski
2da26d2dca Update packages 2025-09-01 15:30:58 -04:00
Matt Nadareski
32a226ede6 Bump version 2025-07-24 08:16:02 -04:00
Matt Nadareski
e9abf681c3 Be consistent about end-of-file newlines 2025-07-24 08:12:50 -04:00
Matt Nadareski
1c10ebf648 Add .NET Standard 2.0 and 2.1 2025-07-24 08:12:11 -04:00
Matt Nadareski
ea6d89d2da Update nuget packages 2025-07-24 08:11:12 -04:00
Matt Nadareski
f457e12d85 Update IO to 1.6.3 2025-05-12 08:25:05 -04:00
Matt Nadareski
3c561a60e7 Fix how conditions are used for references 2025-02-25 21:13:56 -05:00
Matt Nadareski
5830e2a2fd Ensure .NET versions are installed for testing 2024-12-19 10:50:45 -05:00
Matt Nadareski
10163eb9eb Ensure .NET versions are installed for testing 2024-12-19 10:48:13 -05:00
Matt Nadareski
4e45de3fab Bump version 2024-12-16 14:09:59 -05:00
Matt Nadareski
ec92bb22aa Update IO to 1.6.2 2024-12-16 14:08:54 -05:00
Matt Nadareski
6a0826e95c Allow symbols to be packed 2024-12-16 14:07:12 -05:00
Matt Nadareski
b7010349a0 Use publish script and update README 2024-12-06 11:03:01 -05:00
Matt Nadareski
005a447e35 Add automatic testing 2024-11-26 14:44:55 -05:00
9 changed files with 48 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
name: Nuget Pack
name: Build and Test
on:
push:
@@ -16,25 +16,28 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Run tests
run: dotnet test
- name: Pack
run: dotnet pack
- name: Run publish script
run: ./publish-nix.sh
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: 'Nuget Package'
path: 'SabreTools.ASN1/bin/Release/*.nupkg'
path: "*.nupkg,*.snupkg"
- name: Upload to rolling
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: True
artifacts: 'SabreTools.ASN1/bin/Release/*.nupkg'
artifacts: "*.nupkg,*.snupkg"
body: 'Last built commit: ${{ github.sha }}'
name: 'Rolling Release'
prerelease: True

View File

@@ -11,7 +11,13 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Build
run: dotnet build
run: dotnet build
- name: Run tests
run: dotnet test

View File

@@ -1,5 +1,16 @@
# SabreTools.ASN1
[![Build and Test](https://github.com/SabreTools/SabreTools.ASN1/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/SabreTools/SabreTools.ASN1/actions/workflows/build_and_test.yml)
This library comprises of code to parse Abstract Syntax Notation One (ASN.1) codes and output them into various formats. This also performs some rudimentary validation based on the chains that are input.
**Note:** This code is known to be incomplete and will be added to over time.
Find the link to the Nuget package [here](https://www.nuget.org/packages/SabreTools.ASN1).
## Releases
For the most recent stable build, download the latest release here: [Releases Page](https://github.com/SabreTools/SabreTools.ASN1/releases)
For the latest WIP build here: [Rolling Release](https://github.com/SabreTools/SabreTools.ASN1/releases/rolling)

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<NoWarn>NU1903</NoWarn>
@@ -10,13 +10,13 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="coverlet.collector" Version="6.0.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@@ -17,4 +17,4 @@ namespace SabreTools.ASN1
return null;
}
}
}
}

View File

@@ -18036,4 +18036,4 @@ namespace SabreTools.ASN1
#endregion
}
}
}
}

View File

@@ -100,7 +100,8 @@ namespace SabreTools.ASN1
case 5: return "/ITU-R/R-Recommendation";
case 9: return $"{oidPath}/Data";
default: return $"{oidPath}/{values[index - 1]}";
};
}
;
// recommendation
#region 0.0.*
@@ -903,4 +904,4 @@ namespace SabreTools.ASN1
#endregion
}
}
}
}

View File

@@ -22,4 +22,4 @@ namespace SabreTools.ASN1
return string.Join(".", [.. stringValues]);
}
}
}
}

View File

@@ -2,11 +2,13 @@
<PropertyGroup>
<!-- Assembly Properties -->
<TargetFrameworks>net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<IncludeSymbols>true</IncludeSymbols>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>1.5.0</Version>
<Version>1.6.1</Version>
<!-- Package Properties -->
<Authors>Matt Nadareski</Authors>
@@ -28,13 +30,9 @@
<None Include="../README.md" Pack="true" PackagePath="" />
</ItemGroup>
<!-- Support for old .NET versions -->
<ItemGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`))">
<PackageReference Include="NetLegacySupport.Numerics" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="SabreTools.IO" Version="1.6.0" />
<PackageReference Include="NetLegacySupport.Numerics" Version="1.0.1" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`))" />
<PackageReference Include="SabreTools.IO" Version="1.7.1" />
</ItemGroup>
</Project>