Black.Beard.Analysis
1.0.55
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Black.Beard.Analysis --version 1.0.55
NuGet\Install-Package Black.Beard.Analysis -Version 1.0.55
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.Analysis" Version="1.0.55" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Black.Beard.Analysis --version 1.0.55
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Black.Beard.Analysis, 1.0.55"
#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.Analysis as a Cake Addin #addin nuget:?package=Black.Beard.Analysis&version=1.0.55 // Install Black.Beard.Analysis as a Cake Tool #tool nuget:?package=Black.Beard.Analysis&version=1.0.55
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Black.Beard.Roslyn
Helpers for compile Csharp with Roslyn. The way use the tool installed on your machine. It does'nt work if dotnet is not installed.
Sample the use Black.Beard.Build for create a csproj
//Usings
using Bb.Build;
using System;
using System.IO;
// create a folder for store the generated project file
var name = "Black.Beard.tests";
var dir = new DirectoryInfo(Path.Combine(this._baseDirectory.FullName, name));
var project = MsProjectsForBuild
.CreateProject((name, dir)
.Sdk(ProjectSdk.MicrosoftNETSdk) // Specify the target build
.SetPropertyGroup(c => // set the properies of the build
{
c.TargetFramework(TargetFramework.Net6)
.RootNamespace("Bb")
.Description("My description")
.RepositoryUrl(new System.Uri("http://github.com"))
;
})
.Packages(p => // Reference packages
{
p.PackageReference("Black.Beard.ComponentModel", new Version("1.0.36"))
.PackageReference("Black.Beard.Helpers.ContentLoaders", new Version("1.0.8"))
;
});
// Build
var result = project.Build(inMemory: true, load: true);
// fetch the new assembly
var assembly = project.Assembly;
or the helper
var project = MsProjects.CreateCsProject(dir.FullName, name,
TargetFramework.Net6,
"Bb"
)
.SetPropertyGroup(a =>
{
a.Description("MyDescription");
})
.Packages(p =>
{
p.PackageReference("Black.Beard.ComponentModel", new Version("1.0.36"))
.PackageReference("Black.Beard.Helpers.ContentLoaders", new Version("1.0.8"))
;
});
This way 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 | Versions 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Black.Beard.Analysis:
Package | Downloads |
---|---|
Black.Beard.Jslt
Implementation of jslt language in DOTNET. Use a template for transform Json document to another json document. |
|
Black.Beard.Roslyn
Helper for compile Csharp at runtime |
|
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.132 | 0 | 12/21/2024 |
1.0.131 | 128 | 12/7/2024 |
1.0.130 | 99 | 11/27/2024 |
1.0.129 | 96 | 11/24/2024 |
1.0.128 | 143 | 11/19/2024 |
1.0.127 | 96 | 11/19/2024 |
1.0.126 | 106 | 11/18/2024 |
1.0.125 | 106 | 11/17/2024 |
1.0.124 | 110 | 11/17/2024 |
1.0.123 | 104 | 11/17/2024 |
1.0.122 | 109 | 11/17/2024 |
1.0.121 | 95 | 11/17/2024 |
1.0.120 | 403 | 10/28/2024 |
1.0.119 | 149 | 5/3/2024 |
1.0.118 | 220 | 5/2/2024 |
1.0.117 | 252 | 4/7/2024 |
1.0.116 | 124 | 4/6/2024 |
1.0.115 | 102 | 4/6/2024 |
1.0.114 | 406 | 4/3/2024 |
1.0.113 | 414 | 3/31/2024 |
1.0.112 | 296 | 3/19/2024 |
1.0.111 | 162 | 3/16/2024 |
1.0.110 | 146 | 3/16/2024 |
1.0.109 | 194 | 3/15/2024 |
1.0.108 | 197 | 3/13/2024 |
1.0.107 | 289 | 3/12/2024 |
1.0.106 | 150 | 3/9/2024 |
1.0.105 | 146 | 3/6/2024 |
1.0.104 | 153 | 3/5/2024 |
1.0.103 | 197 | 3/4/2024 |
1.0.102 | 180 | 3/4/2024 |
1.0.101 | 165 | 3/4/2024 |
1.0.100 | 200 | 3/4/2024 |
1.0.99 | 209 | 3/3/2024 |
1.0.98 | 150 | 2/29/2024 |
1.0.97 | 139 | 2/29/2024 |
1.0.96 | 148 | 2/29/2024 |
1.0.95 | 177 | 2/27/2024 |
1.0.94 | 189 | 2/26/2024 |
1.0.93 | 187 | 2/25/2024 |
1.0.92 | 138 | 2/24/2024 |
1.0.91 | 139 | 2/24/2024 |
1.0.90 | 145 | 2/24/2024 |
1.0.89 | 251 | 2/24/2024 |
1.0.88 | 147 | 2/24/2024 |
1.0.87 | 158 | 2/23/2024 |
1.0.86 | 155 | 2/23/2024 |
1.0.85 | 139 | 2/23/2024 |
1.0.84 | 162 | 2/23/2024 |
1.0.83 | 160 | 2/23/2024 |
1.0.82 | 160 | 2/23/2024 |
1.0.81 | 154 | 2/22/2024 |
1.0.80 | 131 | 2/22/2024 |
1.0.79 | 138 | 2/22/2024 |
1.0.78 | 130 | 2/22/2024 |
1.0.77 | 150 | 2/21/2024 |
1.0.76 | 187 | 2/19/2024 |
1.0.75 | 134 | 2/19/2024 |
1.0.74 | 145 | 2/18/2024 |
1.0.73 | 151 | 2/17/2024 |
1.0.72 | 283 | 12/12/2023 |
1.0.70 | 261 | 10/17/2023 |
1.0.69 | 205 | 10/17/2023 |
1.0.68 | 166 | 10/17/2023 |
1.0.67 | 187 | 10/16/2023 |
1.0.66 | 174 | 10/16/2023 |
1.0.65 | 212 | 10/13/2023 |
1.0.64 | 226 | 10/10/2023 |
1.0.63 | 298 | 9/13/2023 |
1.0.62 | 212 | 7/31/2023 |
1.0.61 | 210 | 7/28/2023 |
1.0.60 | 206 | 7/28/2023 |
1.0.59 | 209 | 7/28/2023 |
1.0.58 | 212 | 7/28/2023 |
1.0.57 | 198 | 7/28/2023 |
1.0.56 | 194 | 7/27/2023 |
1.0.55 | 202 | 7/27/2023 |
1.0.54 | 231 | 7/27/2023 |