OpaDotNet.Compilation.Cli
2.0.0-preview0013
This is a prerelease version of OpaDotNet.Compilation.Cli.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package OpaDotNet.Compilation.Cli --version 2.0.0-preview0013
NuGet\Install-Package OpaDotNet.Compilation.Cli -Version 2.0.0-preview0013
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="OpaDotNet.Compilation.Cli" Version="2.0.0-preview0013" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpaDotNet.Compilation.Cli --version 2.0.0-preview0013
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpaDotNet.Compilation.Cli, 2.0.0-preview0013"
#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 OpaDotNet.Compilation.Cli as a Cake Addin #addin nuget:?package=OpaDotNet.Compilation.Cli&version=2.0.0-preview0013&prerelease // Install OpaDotNet.Compilation.Cli as a Cake Tool #tool nuget:?package=OpaDotNet.Compilation.Cli&version=2.0.0-preview0013&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
Rego
compiler which uses opa
cli too for policy bundle compilation and packaging.
Basically, it's equivalent to executing opa build
.
Example
Important. You will need opa
cli tool v0.20.0+ to be in your PATH or provide full path
in RegoCliCompilerOptions
.
using OpaDotNet.Compilation.Cli;
var compiler = new RegoCliCompiler();
// Equivalent to: opa built -t wasm -e 'example/hello' ./example.rego
var bundleStream = await compiler.CompileFileAsync("example.rego", new() { Entrypoints = new HashSet<string>(["example/hello"]) });
...
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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 is compatible. 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.
-
net7.0
- Microsoft.CodeAnalysis.PublicApiAnalyzers (>= 3.3.4)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.SourceLink.GitHub (>= 8.0.0)
- OpaDotNet.Compilation.Abstractions (>= 2.0.0-preview0016)
-
net8.0
- Microsoft.CodeAnalysis.PublicApiAnalyzers (>= 3.3.4)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.SourceLink.GitHub (>= 8.0.0)
- OpaDotNet.Compilation.Abstractions (>= 2.0.0-preview0016)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-preview-0002 | 67 | 11/10/2024 |
2.0.0-preview-0000 | 58 | 10/25/2024 |
1.8.0-preview0005 | 73 | 7/12/2024 |
1.7.4 | 92 | 8/6/2024 |
1.7.3 | 105 | 6/14/2024 |
1.7.2 | 101 | 6/13/2024 |
1.7.1 | 92 | 6/12/2024 |
1.7.0 | 102 | 5/15/2024 |
1.6.1 | 216 | 2/9/2024 |
1.6.0 | 201 | 1/10/2024 |
1.5.0 | 216 | 11/21/2023 |
1.5.0-preview0001 | 105 | 11/21/2023 |
1.4.1 | 160 | 10/10/2023 |
1.4.0 | 144 | 10/9/2023 |
1.3.1 | 168 | 9/27/2023 |
1.2.2 | 166 | 9/18/2023 |
1.2.1 | 133 | 9/18/2023 |
1.2.0 | 153 | 8/23/2023 |
1.1.3 | 175 | 8/18/2023 |
1.1.1 | 160 | 8/17/2023 |
1.1.0 | 159 | 8/17/2023 |
1.0.0 | 152 | 8/16/2023 |