PluginRegistration.Tool
2.0.6
dotnet tool install --global PluginRegistration.Tool --version 2.0.6
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local PluginRegistration.Tool --version 2.0.6
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PluginRegistration.Tool&version=2.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package PluginRegistration.Tool --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 | 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.
This package has no dependencies.