PluginRegistration.Attributes 2.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package PluginRegistration.Attributes --version 2.0.4
                    
NuGet\Install-Package PluginRegistration.Attributes -Version 2.0.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="PluginRegistration.Attributes" Version="2.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PluginRegistration.Attributes" Version="2.0.4" />
                    
Directory.Packages.props
<PackageReference Include="PluginRegistration.Attributes" />
                    
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 PluginRegistration.Attributes --version 2.0.4
                    
#r "nuget: PluginRegistration.Attributes, 2.0.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 PluginRegistration.Attributes@2.0.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=PluginRegistration.Attributes&version=2.0.4
                    
Install as a Cake Addin
#tool nuget:?package=PluginRegistration.Attributes&version=2.0.4
                    
Install as a Cake Tool

PluginRegistration

Attributes and tooling for registering Dataverse (Dynamics 365) plugins and Custom APIs from source-code attributes.

Full documentation: README.md and docs/.

Packages

Package Purpose
PluginRegistration.Attributes Attributes to decorate plugin classes
PluginRegistration.Tool CLI tool (pluginreg) for deploy/sync
PluginRegistration.Core Core library (rarely used directly)

Installation

dotnet add package PluginRegistration.Attributes
dotnet tool install --global PluginRegistration.Tool

See docs/installation.md for build-from-source and private feeds.

Basic usage

Plugin step

using Microsoft.Xrm.Sdk;
using PluginRegistration.Attributes;

[PluginRegistration(
    MessageTypeEnum.Create,
    "account",
    StageEnum.PostOperation,
    ExecutionModeEnum.Synchronous,
    ["name"],
    1)]
public class AccountCreatePlugin : IPlugin
{
    public void Execute(IServiceProvider serviceProvider) { }
}

Custom API

[CustomApiRegistration("sample_ProcessAccount", FriendlyName = "Process Account")]
[CustomApiRequestParameter("AccountId", CustomApiParameterTypeEnum.String, IsRequired = true)]
[CustomApiResponseProperty("Success", CustomApiParameterTypeEnum.Boolean)]
public class ProcessAccountCustomApiPlugin : IPlugin
{
    public void Execute(IServiceProvider serviceProvider) { }
}

Deploy

dotnet pack -c Release
pluginreg deploy --path . --package-path bin/Release --solution MySolution

More: docs/getting-started.md, docs/plugin-steps.md, docs/custom-api.md.

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PluginRegistration.Attributes:

Package Downloads
PluginRegistration.Core

Core library for Dataverse plugin registration (deploy, sync, early-bound generation, profile support).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.6 112 8/11/2026
2.0.5 101 8/11/2026
2.0.4 120 8/3/2026
2.0.3 121 7/19/2026
2.0.2 118 7/16/2026