Added gittignore and deleted unused folders

This commit is contained in:
2026-01-21 16:16:09 -06:00
parent e0c24250fb
commit 5459eac680
26 changed files with 47 additions and 557 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.idea/
.vscode/

View File

@@ -1,2 +1,9 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
namespace SzCli;
public class Program
{
public static void Main(string[] args)
{
}
}

View File

@@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = "")]

View File

@@ -1,22 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("SzCli")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0a91734a27836b548e422e7f53f42a86a6e65aa0")]
[assembly: System.Reflection.AssemblyProductAttribute("SzCli")]
[assembly: System.Reflection.AssemblyTitleAttribute("SzCli")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -1 +0,0 @@
c84592cdeb0dc4a761e7751dfbf7a0fd24d31f7e0652aede57d423374036e623

View File

@@ -1,17 +0,0 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SzCli
build_property.ProjectDir = /data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =

View File

@@ -1,8 +0,0 @@
// <auto-generated/>
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;

View File

@@ -1,142 +0,0 @@
{
"format": 1,
"restore": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj": {}
},
"projects": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj",
"projectName": "SzCli",
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj",
"packagesPath": "/home/chris/.nuget/packages/",
"outputPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/chris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"/usr/share/dotnet/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj": {
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.22, 8.0.22]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
}
}
},
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"projectName": "SzLib",
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"packagesPath": "/home/chris/.nuget/packages/",
"outputPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/chris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"/usr/share/dotnet/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.22, 8.0.22]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/chris/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/chris/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/chris/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -1,101 +0,0 @@
{
"version": 3,
"targets": {
"net8.0": {
"SzLib/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v8.0",
"compile": {
"bin/placeholder/SzLib.dll": {}
},
"runtime": {
"bin/placeholder/SzLib.dll": {}
}
}
}
},
"libraries": {
"SzLib/1.0.0": {
"type": "project",
"path": "../SzLib/SzLib.csproj",
"msbuildProject": "../SzLib/SzLib.csproj"
}
},
"projectFileDependencyGroups": {
"net8.0": [
"SzLib >= 1.0.0"
]
},
"packageFolders": {
"/home/chris/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj",
"projectName": "SzCli",
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj",
"packagesPath": "/home/chris/.nuget/packages/",
"outputPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/chris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"/usr/share/dotnet/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj": {
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.22, 8.0.22]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -1,10 +0,0 @@
{
"version": 2,
"dgSpecHash": "ca9xSR6LgAg=",
"success": true,
"projectFilePath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzCli/SzCli.csproj",
"expectedPackageFiles": [
"/home/chris/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.22/microsoft.aspnetcore.app.ref.8.0.22.nupkg.sha512"
],
"logs": []
}

View File

@@ -2,5 +2,5 @@ namespace SzLib;
public interface ISzFileManager
{
public Path DataPath {get; set;}
public string DataPath {get; set;}
}

View File

@@ -1,6 +1,39 @@
using System.Text.Json;
using SzLib.DataObjects;
namespace SzLib;
public class SzParser(ISzFileManager szFileManager)
public class SzParser
{
public readonly ISzFileManager FileManager = szFileManager;
public readonly ISzFileManager FileManager;
private JsonSerializerOptions _jsonOptions = new()
{
WriteIndented = true,
};
public SzParser(ISzFileManager szFileManager)
{
FileManager = szFileManager;
}
public (string result, SzParseError error) SerializeDatasetToJson(SzDataset dataset)
{
try
{
var jsonString = JsonSerializer.Serialize(dataset, _jsonOptions);
return (jsonString, SzParseError.None);
}
catch (JsonException e)
{
return ("", SzParseError.CouldNotSerialize);
}
}
}
public enum SzParseError
{
None,
CouldNotSerialize,
GenericError,
}

View File

@@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = "")]

View File

@@ -1,22 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("SzLib")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0a91734a27836b548e422e7f53f42a86a6e65aa0")]
[assembly: System.Reflection.AssemblyProductAttribute("SzLib")]
[assembly: System.Reflection.AssemblyTitleAttribute("SzLib")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -1 +0,0 @@
c4fac1ee3ada9b23fef8f772fe12079089fe1f0f9fd88ed354bd91dd8a45b58a

View File

@@ -1,17 +0,0 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SzLib
build_property.ProjectDir = /data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =

View File

@@ -1,8 +0,0 @@
// <auto-generated/>
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;

View File

@@ -1,73 +0,0 @@
{
"format": 1,
"restore": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj": {}
},
"projects": {
"/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"projectName": "SzLib",
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"packagesPath": "/home/chris/.nuget/packages/",
"outputPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/chris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"/usr/share/dotnet/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.22, 8.0.22]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/chris/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/chris/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/chris/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -1,78 +0,0 @@
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"/home/chris/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"projectName": "SzLib",
"projectPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"packagesPath": "/home/chris/.nuget/packages/",
"outputPath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/chris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"/usr/share/dotnet/library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.22, 8.0.22]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -1,10 +0,0 @@
{
"version": 2,
"dgSpecHash": "rw6Dqopfnh8=",
"success": true,
"projectFilePath": "/data/Projects/bellsworne/sessionzero/SessionZeroCS/SessionZero/SzLib/SzLib.csproj",
"expectedPackageFiles": [
"/home/chris/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.22/microsoft.aspnetcore.app.ref.8.0.22.nupkg.sha512"
],
"logs": []
}