setup for nuget

This commit is contained in:
Chris Bell 2025-07-21 21:59:01 -05:00
parent c4dcca8971
commit 4298f04f1b
6 changed files with 22 additions and 6 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@ SessionZero.SzfCli/obj
SessionZero.SzfLib/bin
SessionZero.SzfLib/obj
publish-lib-nuget.sh

View File

@ -77,6 +77,6 @@ try
}
catch (SzfError ex)
{
Console.WriteLine($"Szf Validation Error: {ex.Message}");
AnsiConsole.MarkupLine($"[bold][red]Szf Validation Error:[/][/]\r\n{ex.Message}");
}

View File

@ -8,7 +8,6 @@ public class SzfDataset : SzfObject, ISzfDataset
{
public override string SzfType { get; set; } = "dataset";
public override SzfError Validate()
{
var result = SzfHelper.BasicSzfValidation(this);

View File

@ -79,8 +79,6 @@ public class SzfParser : ISzfParser
result = szfObject.Validate();
if (result.IsValid) return szfObject;
Console.WriteLine(result.Message);
}
throw result;

View File

@ -0,0 +1 @@
# SessionZero SZFLib

View File

@ -4,6 +4,22 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Title>Session Zero SZFLib</Title>
<Description>An extendable library for handling SessionZero SZF data including Parsing and Generating.</Description>
<Copyright>2025 Bellsworne LLC</Copyright>
<PackageProjectUrl>https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet.git</PackageProjectUrl>
<PackageLicenseUrl>https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet/src/branch/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIcon>logo_500x500.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Update="logo_500x500.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>