OpaDotNet.Compilation.Interop 2.3.4

dotnet add package OpaDotNet.Compilation.Interop --version 2.3.4
                    
NuGet\Install-Package OpaDotNet.Compilation.Interop -Version 2.3.4
                    
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.Interop" Version="2.3.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpaDotNet.Compilation.Interop" Version="2.3.4" />
                    
Directory.Packages.props
<PackageReference Include="OpaDotNet.Compilation.Interop" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OpaDotNet.Compilation.Interop --version 2.3.4
                    
#r "nuget: OpaDotNet.Compilation.Interop, 2.3.4"
                    
#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.
#:package OpaDotNet.Compilation.Interop@2.3.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OpaDotNet.Compilation.Interop&version=2.3.4
                    
Install as a Cake Addin
#tool nuget:?package=OpaDotNet.Compilation.Interop&version=2.3.4
                    
Install as a Cake Tool

About

Rego compiler which uses interop wrapper for subset of OPA SDK for policy bundle compilation and packaging.

Note. Due to inclusion of native dependencies, nuget OpaDotNet.Compilation.Interop package is ~15MB.

Versions

Version OPA SDK Version Platforms
v1.0.X v0.67.0 linux-x64 win-x64

Example

using OpaDotNet.Compilation.Interop;

var compiler = new RegoInteropCompiler();
var bundleStream = await compiler.CompileFileAsync("example.rego", new() { Entrypoints = new HashSet<string>(["example/hello"]) });

// Use compiled policy bundle.
...
Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 is compatible.  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.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OpaDotNet.Compilation.Interop:

Package Downloads
AI.Sentinel.ClaudeCode

Claude Code hook adapter for AI.Sentinel — scan UserPromptSubmit, PreToolUse, and PostToolUse hook payloads through the detector pipeline.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.4 919 10/29/2026
2.1.0 7,150 12/15/2025
2.0.0 5,432 3/11/2025
2.0.0-preview-0010 345 3/5/2025
2.0.0-preview-0008 229 2/26/2025
2.0.0-preview-0002 211 11/10/2024
2.0.0-preview-0000 222 10/25/2024
1.8.0-preview0005 240 7/12/2024
1.7.4 1,582 8/6/2024
1.7.3 297 6/14/2024
1.7.2 328 6/13/2024
1.7.1 279 6/12/2024
1.7.0 572 5/15/2024
1.6.1 422 2/9/2024
1.6.0 439 1/10/2024
1.5.0 392 11/21/2023
1.5.0-preview0001 256 11/21/2023
1.4.1 349 10/10/2023
1.4.0 352 10/9/2023
Loading failed