PluginRegistration.Attributes
2.0.6
dotnet add package PluginRegistration.Attributes --version 2.0.6
NuGet\Install-Package PluginRegistration.Attributes -Version 2.0.6
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.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PluginRegistration.Attributes" Version="2.0.6" />
<PackageReference Include="PluginRegistration.Attributes" />
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.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PluginRegistration.Attributes, 2.0.6"
#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.6
#: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.6
#tool nuget:?package=PluginRegistration.Attributes&version=2.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.