Skip to content

Commit

Permalink
get rid of rscgutils
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Apr 5, 2024
1 parent ccc91ed commit b220511
Show file tree
Hide file tree
Showing 8 changed files with 429 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:

jobs:
build:
runs-on: windows-latest
#runs-on: ubuntu-latest
#runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.0.2" />
<PackageReference Include="Morris.Moxy" Version="1.8.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<!--<PackageReference Include="rscgutils" Version="2024.1859.1955" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />-->
<PackageReference Include="rscgutils" Version="2024.2000.2000" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<!--<PackageReference Include="rscgutils" Version="2024.2000.2000" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />-->

</ItemGroup>
<ItemGroup>
<PackageReference Include="RSCG_WhatIAmDoing" Version="8.2024.10404.2057" />
<PackageReference Include="RSCG_WhatIAmDoing_Common" Version="8.2024.10404.2057" />

</ItemGroup>
<ItemGroup>
<Folder Include="rscgutilsGenerated\" />
</ItemGroup>
<PropertyGroup>

<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
#nullable enable

namespace NS_GeneratedJson_deprecatedV1_gen_json {


/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class TopLevelPackages{

[System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("requestedVersion")]
public string? RequestedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("resolvedVersion")]
public string? ResolvedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("latestVersion")]
public string? LatestVersion {get;set;}
public static TopLevelPackages? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<TopLevelPackages>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Frameworks{

[System.Text.Json.Serialization.JsonPropertyName("framework")]
public string? Framework {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("topLevelPackages")]
public IList<TopLevelPackages>? TopLevelPackages {get;set;}
public static Frameworks? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Frameworks>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Projects{

[System.Text.Json.Serialization.JsonPropertyName("path")]
public string? Path {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("frameworks")]
public IList<Frameworks>? Frameworks {get;set;}
public static Projects? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Projects>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class deprecatedV1_gen_json{

[System.Text.Json.Serialization.JsonPropertyName("version")]
public int? Version {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("parameters")]
public string? Parameters {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("sources")]
public IList<string>? Sources {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("projects")]
public IList<Projects>? Projects {get;set;}
public static deprecatedV1_gen_json? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<deprecatedV1_gen_json>(text); }
}//end class
} //endnamespace
#nullable restore
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
#nullable enable

namespace NS_GeneratedJson_includeV1_gen_json {


/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Problems{

[System.Text.Json.Serialization.JsonPropertyName("level")]
public string? Level {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("text")]
public string? Text {get;set;}
public static Problems? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Problems>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Frameworks{

[System.Text.Json.Serialization.JsonPropertyName("framework")]
public string? Framework {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("topLevelPackages")]
public IList<TopLevelPackages>? TopLevelPackages {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("transitivePackages")]
public IList<TransitivePackages>? TransitivePackages {get;set;}
public static Frameworks? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Frameworks>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Projects{

[System.Text.Json.Serialization.JsonPropertyName("path")]
public string? Path {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("frameworks")]
public IList<Frameworks>? Frameworks {get;set;}
public static Projects? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Projects>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class TopLevelPackages{

[System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("requestedVersion")]
public string? RequestedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("resolvedVersion")]
public string? ResolvedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("autoReferenced")]
public string? AutoReferenced {get;set;}
public static TopLevelPackages? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<TopLevelPackages>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class TransitivePackages{

[System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("resolvedVersion")]
public string? ResolvedVersion {get;set;}
public static TransitivePackages? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<TransitivePackages>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class includeV1_gen_json{

[System.Text.Json.Serialization.JsonPropertyName("version")]
public int? Version {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("parameters")]
public string? Parameters {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("problems")]
public IList<Problems>? Problems {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("projects")]
public IList<Projects>? Projects {get;set;}
public static includeV1_gen_json? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<includeV1_gen_json>(text); }
}//end class
} //endnamespace
#nullable restore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
#nullable enable

namespace NS_GeneratedJson_outdatedV1_gen_json {


/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Projects{

[System.Text.Json.Serialization.JsonPropertyName("path")]
public string? Path {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("frameworks")]
public IList<Frameworks>? Frameworks {get;set;}
public static Projects? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Projects>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class TopLevelPackages{

[System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("requestedVersion")]
public string? RequestedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("resolvedVersion")]
public string? ResolvedVersion {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("deprecationReasons")]
public IList<string>? DeprecationReasons {get;set;}
public static TopLevelPackages? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<TopLevelPackages>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class Frameworks{

[System.Text.Json.Serialization.JsonPropertyName("framework")]
public string? Framework {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("topLevelPackages")]
public IList<TopLevelPackages>? TopLevelPackages {get;set;}
public static Frameworks? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<Frameworks>(text); }
}
/// <summary>
/// generated with RSCG_UTILS 2023.914.2016
/// </summary>
public partial class outdatedV1_gen_json{

[System.Text.Json.Serialization.JsonPropertyName("version")]
public int? Version {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("parameters")]
public string? Parameters {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("sources")]
public IList<string>? Sources {get;set;}
[System.Text.Json.Serialization.JsonPropertyName("projects")]
public IList<Projects>? Projects {get;set;}
public static outdatedV1_gen_json? Deserialize(string? text){ if(text == null) return null; return System.Text.Json.JsonSerializer.Deserialize<outdatedV1_gen_json>(text); }
}//end class
} //endnamespace
#nullable restore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

public static partial class MyAdditionalFiles
{
//https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/raw-string
public const string deprecatedV1_gen_json = """"""""""
{
"version": 1,
"parameters": "--outdated",
"sources": [
"https://api.nuget.org/v3/index.json",
"C:/Program Files (x86)/Microsoft SDKs/NuGetPackages/"
],
"projects": [
{
"path": "C:/gth/RSCG_Utils/src/RSCG_Utils/RSCG_Utils/RSCG_Utils.csproj",
"frameworks": [
{
"framework": "netstandard2.0",
"topLevelPackages": [
{
"id": "Microsoft.CodeAnalysis.CSharp",
"requestedVersion": "4.6.0",
"resolvedVersion": "4.6.0",
"latestVersion": "4.7.0"
},
{
"id": "Microsoft.SourceLink.GitHub",
"requestedVersion": "1.1.0",
"resolvedVersion": "1.1.0",
"latestVersion": "1.1.1"
},
{
"id": "System.Text.Json",
"requestedVersion": "5.0.0",
"resolvedVersion": "5.0.0",
"latestVersion": "7.0.3"
}
]
}
]
}
]
}
"""""""""";
}
Loading

0 comments on commit b220511

Please sign in to comment.