Devolutions.Now.Policy.Model 2026.7.13

Prefix Reserved
dotnet add package Devolutions.Now.Policy.Model --version 2026.7.13
                    
NuGet\Install-Package Devolutions.Now.Policy.Model -Version 2026.7.13
                    
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="Devolutions.Now.Policy.Model" Version="2026.7.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Devolutions.Now.Policy.Model" Version="2026.7.13" />
                    
Directory.Packages.props
<PackageReference Include="Devolutions.Now.Policy.Model" />
                    
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 Devolutions.Now.Policy.Model --version 2026.7.13
                    
#r "nuget: Devolutions.Now.Policy.Model, 2026.7.13"
                    
#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 Devolutions.Now.Policy.Model@2026.7.13
                    
#: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=Devolutions.Now.Policy.Model&version=2026.7.13
                    
Install as a Cake Addin
#tool nuget:?package=Devolutions.Now.Policy.Model&version=2026.7.13
                    
Install as a Cake Tool

Devolutions NOW policy model for .NET

Devolutions.Now.Policy.Model contains the .NET policy document model for Devolutions NOW package broker policies. It is the .NET counterpart to the Rust now-policy crate and represents the policy files used to decide whether package operations are allowed or denied.

Purpose

This package is focused on policy documents, not broker transport. It is used by .NET code that needs to create, parse, inspect, or serialize Devolutions NOW policy files.

The model is used to:

  • represent package broker policy documents in C#;
  • parse strict JSON policy documents;
  • parse YAML policy documents by converting them to the same JSON model;
  • serialize policy documents with the canonical JSON shape;
  • share policy enums and document types with the package broker API compatibility layer.

Architecture

  • PolicyModels.cs defines PolicyDocument, metadata, enforcement, rules, match criteria, constraints, and version range types.
  • Enums.cs defines policy-level enums such as operation, manager, scope, architecture, elevation, decision, and rule precedence.
  • PolicyJson.cs defines shared JsonSerializerOptions, including strict parsing that rejects unknown JSON members.

PolicyDocument.Create provides a simple helper for constructing a new policy document with metadata and default enforcement. PolicyDocument.ParseJson and PolicyDocument.ParseYaml are the main entry points for reading policy documents.

Validation

Run the Rust policy schema/tests as well when changing shared policy semantics.

Product Compatible and additional computed target framework versions.
.NET 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 Devolutions.Now.Policy.Model:

Package Downloads
Devolutions.Now.Policy.Api

Request and response DTOs for the Devolutions NOW package broker API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.7.13 289 7/13/2026
2026.6.23 114 6/23/2026