21 Commits
1.5.1 ... main

Author SHA1 Message Date
Matt Nadareski
0bdfc5426d Update notice 2025-09-24 11:12:22 -04:00
Matt Nadareski
827913d09c Add notice 2025-09-24 08:24:43 -04:00
Matt Nadareski
2d955c8ef7 Update IO to 1.7.5 2025-09-24 08:16:16 -04:00
Matt Nadareski
ebdab151be Bump version 2025-09-22 17:55:59 -04:00
Matt Nadareski
a664cff34c Update IO to 1.7.4 2025-09-22 17:54:53 -04:00
Matt Nadareski
8110cdd0cb Bump version 2025-09-20 22:22:45 -04:00
Matt Nadareski
7a10aab5d1 Update IO to 1.7.3 2025-09-20 22:21:34 -04:00
Matt Nadareski
1516a8647a There 2025-09-10 21:53:37 -04:00
Matt Nadareski
4ee64a2c49 Bump version 2025-09-05 10:29:40 -04:00
Matt Nadareski
9cdf10d481 Suppress TFM issues 2025-09-05 10:27:16 -04:00
Matt Nadareski
04996584b5 Update IO to 1.7.2 2025-09-05 10:23:47 -04:00
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
10 changed files with 34 additions and 21 deletions

View File

@@ -16,8 +16,11 @@ 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: Run tests
run: dotnet test

View File

@@ -11,7 +11,10 @@ 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

7
LICENSE Normal file
View File

@@ -0,0 +1,7 @@
Copyright (c) 2018-2025 Matt Nadareski
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -2,6 +2,8 @@
[![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)
**NOTICE:** This library has been deprecated. All functionality formerly in this library is in [SabreTools.Serialization](https://github.com/SabreTools/SabreTools.Serialization) as of version 1.9.6.
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.

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,13 +2,14 @@
<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>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>1.5.1</Version>
<Version>1.6.4</Version>
<!-- Package Properties -->
<Authors>Matt Nadareski</Authors>
@@ -30,13 +31,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.2" />
<PackageReference Include="NetLegacySupport.Numerics" Version="1.0.1" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`))" />
<PackageReference Include="SabreTools.IO" Version="1.7.5" />
</ItemGroup>
</Project>