Black.Beard.Roslyn 1.0.133

dotnet add package Black.Beard.Roslyn --version 1.0.133                
NuGet\Install-Package Black.Beard.Roslyn -Version 1.0.133                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Black.Beard.Roslyn" Version="1.0.133" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Black.Beard.Roslyn --version 1.0.133                
#r "nuget: Black.Beard.Roslyn, 1.0.133"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Black.Beard.Roslyn as a Cake Addin
#addin nuget:?package=Black.Beard.Roslyn&version=1.0.133

// Install Black.Beard.Roslyn as a Cake Tool
#tool nuget:?package=Black.Beard.Roslyn&version=1.0.133                

Black.Beard.Roslyn

Build status

Use Roslyn for generate the assembly


    // Use NJsonSchema for generate json schema
    JsonSchema schema = JsonSchema.FromType(typeof(Sample1));

    // Helper for manipulate codeDom object
    var samples = "CodeDOMSample".ToNamespace()
        .Import("System")       // append usings

        .AppendPoco(schema)     // add a poco class from schema

        .ToCSharp(Path.Combine(_dir.FullName, "class1.cs")) // Generate csharp code
        ;

    // compile
    AssemblyResult assembly = GetCsharpBuilder(samples.FullName);

    // consumme the result assembly
    if (assembly.Success)
    {
        var ass = assembly.LoadAssembly();
        var type = ass.GetTypes().First(c => c.Name == "Sample1");
        Assert.NotNull(type);
    
        var property = type.GetProperties().FirstOrDefault(c => nameof(Sample1.Name) == c.Name);
        Assert.NotNull(property);
    
    }
    else
    {
        var payload = File.ReadAllText(samples.FullName);
        throw new Exception();
    }


    private static Bb.Compilers.AssemblyResult GetCsharpBuilder(string filepathCode)
    {

        var fileInfo = new FileInfo(filepathCode);

        // Build assembly

        Action<CSharpCompilationOptions> action = (r) =>
        {

        };

        BuildCSharp builder = new BuildCSharp()
        {
            ResolveAssembliesInCode = true,
            Debug = true,
            LanguageVersion = LanguageVersion.CSharp7,
        }
        .AddSource(fileInfo)
        .Suppress("CS1702", "CS1998")
        ;

        // System.Collections
        builder.References.AddRange(
            typeof(object),
            typeof(RequiredAttribute)
        );

        var assembly = builder.Build();
        return assembly;

    }        

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Black.Beard.Roslyn:

Package Downloads
Black.Beard.Jslt

Implementation of jslt language in DOTNET. Use a template for transform Json document to another json document.

Black.Beard.OpenApi

add helpers for manipulate open api document. provide a visitor pattern.

Black.Beard.OpenApiServices

add visitor for generate code from open api documentation

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.133 72 1/27/2025
1.0.132 98 12/21/2024
1.0.131 139 12/7/2024
1.0.130 94 11/27/2024
1.0.129 88 11/24/2024
1.0.128 130 11/19/2024
1.0.127 89 11/19/2024
1.0.126 88 11/18/2024
1.0.125 82 11/17/2024
1.0.124 87 11/17/2024
1.0.123 81 11/17/2024
1.0.122 83 11/17/2024
1.0.121 86 11/17/2024
1.0.120 419 10/28/2024
1.0.119 87 5/3/2024
1.0.118 200 5/2/2024
1.0.117 240 4/7/2024
1.0.114 384 4/3/2024
1.0.113 406 3/31/2024
1.0.112 281 3/19/2024
1.0.111 132 3/16/2024
1.0.110 124 3/16/2024
1.0.109 184 3/15/2024
1.0.108 198 3/13/2024
1.0.107 275 3/12/2024
1.0.106 127 3/9/2024
1.0.105 123 3/6/2024
1.0.104 115 3/5/2024
1.0.103 173 3/4/2024
1.0.102 167 3/4/2024
1.0.101 125 3/4/2024
1.0.100 173 3/4/2024
1.0.99 185 3/3/2024
1.0.98 133 2/29/2024
1.0.97 124 2/29/2024
1.0.96 117 2/29/2024
1.0.95 133 2/27/2024
1.0.94 179 2/26/2024
1.0.93 167 2/25/2024
1.0.92 127 2/24/2024
1.0.91 116 2/24/2024
1.0.90 125 2/24/2024
1.0.89 247 2/24/2024
1.0.88 120 2/24/2024
1.0.87 142 2/23/2024
1.0.86 121 2/23/2024
1.0.85 119 2/23/2024
1.0.84 130 2/23/2024
1.0.83 149 2/23/2024
1.0.82 127 2/23/2024
1.0.81 129 2/22/2024
1.0.80 101 2/22/2024
1.0.79 100 2/22/2024
1.0.78 98 2/22/2024
1.0.77 124 2/21/2024
1.0.76 172 2/19/2024
1.0.75 121 2/19/2024
1.0.74 109 2/18/2024
1.0.73 117 2/17/2024
1.0.72 302 12/12/2023
1.0.70 257 10/17/2023
1.0.69 215 10/17/2023
1.0.68 159 10/17/2023
1.0.67 163 10/16/2023
1.0.66 182 10/16/2023
1.0.65 224 10/13/2023
1.0.64 218 10/10/2023
1.0.63 306 9/13/2023
1.0.62 208 7/31/2023
1.0.61 216 7/28/2023
1.0.60 192 7/28/2023
1.0.59 216 7/28/2023
1.0.58 202 7/28/2023
1.0.57 168 7/28/2023
1.0.56 183 7/27/2023
1.0.55 172 7/27/2023
1.0.54 216 7/27/2023
1.0.53 191 7/27/2023
1.0.52 215 7/27/2023
1.0.51 252 7/25/2023
1.0.50 205 7/25/2023
1.0.49 554 7/4/2023
1.0.48 239 6/30/2023
1.0.47 283 6/30/2023
1.0.46 223 6/30/2023
1.0.45 282 6/17/2023
1.0.44 270 6/17/2023
1.0.43 234 6/17/2023
1.0.42 277 6/6/2023
1.0.41 282 6/5/2023
1.0.40 232 6/5/2023
1.0.39 284 6/5/2023
1.0.38 299 5/31/2023
1.0.37 193 5/30/2023
1.0.36 241 5/30/2023
1.0.35 205 5/30/2023
1.0.33 225 5/30/2023
1.0.32 248 5/30/2023
1.0.31 218 5/30/2023
1.0.30 214 5/29/2023
1.0.29 232 5/25/2023
1.0.28 209 5/24/2023
1.0.27 209 5/18/2023
1.0.26 222 5/18/2023
1.0.25 246 5/18/2023
1.0.24 217 5/16/2023
1.0.23 233 5/15/2023
1.0.22 220 5/15/2023
1.0.20 202 5/14/2023
1.0.18 1,357 5/18/2022
1.0.17 1,780 5/17/2022
1.0.16 472 5/17/2022
1.0.15 484 4/3/2022
1.0.13 487 4/3/2022
1.0.12 1,818 3/28/2022
1.0.11 466 3/27/2022
1.0.10 3,840 3/16/2022
1.0.9 481 3/16/2022
1.0.8 472 3/16/2022
1.0.7 485 3/16/2022
1.0.6 513 3/16/2022
1.0.5 483 3/16/2022
1.0.4 473 3/14/2022
1.0.3 488 3/6/2022
1.0.2 10,489 12/19/2021
1.0.1 472 12/18/2021