Skip to content

Commit 4a33ae2

Browse files
Merge pull request #4864 from MicrosoftDocs/main638338969487778750sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 78ddb2c + 9ce8fdd commit 4a33ae2

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

powerapps-docs/developer/data-platform/dependent-assembly-plugins.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Dependent Assembly plug-ins (preview)
33
description: Learn how to include more assemblies that your plug-in assembly can depend on.
4-
ms.date: 10/12/2023
4+
ms.date: 10/25/2023
55
ms.reviewer: jdaly
66
ms.topic: article
77
author: divkamath
@@ -286,6 +286,10 @@ This command opens a dialog so you can select a NuGet package to update the plug
286286

287287
## Design notes
288288

289+
Here a a few things to consider when creating plug-in packages.
290+
291+
### Generating the NuGet package
292+
289293
The Visual Studio project created using [pac plugin init](/power-platform/developer/cli/reference/plugin#pac-plugin-init) uses Visual Studio capabilities that enable generating NuGet Packages. This method uses the [SDK-style](/nuget/resources/check-project-format) project format. Power Platform Tools for Visual Studio uses the [Non-SDK-style](/nuget/resources/check-project-format) project format.
290294

291295
You aren't required to use these tools to generate a NuGet package with your plug-ins. You can use whatever capabilities you choose to generate a NuGet package, but you must use the tooling available to upload the package to Dataverse.
@@ -295,6 +299,24 @@ More information:
295299
- [Create a NuGet package using MSBuild](/nuget/create-packages/creating-a-package-msbuild)
296300
- [NuGet pack and restore as MSBuild targets](/nuget/reference/msbuild-targets)
297301

302+
### What not to include in your package
303+
304+
You may experience an issue when creating and registering plug-in packages where standard Dataverse assemblies are included in your package resulting in an error at package registration time.
305+
306+
> [!IMPORTANT]
307+
> Do not include the following Dataverse assemblies in your package. Doing so will result in an error when registering the package.
308+
>
309+
> Microsoft.Crm.Sdk.Proxy.dll
310+
> Microsoft.Xrm.Sdk.dll
311+
> Microsoft.Xrm.Sdk.Workflow.dll
312+
> Microsoft.Xrm.Sdk.Data.dll
313+
> Microsoft.Crm.Sdk.dll
314+
315+
Including any of these assemblies in the plug-in package results in the following error message when registering the plug-in package with Dataverse:
316+
317+
"PluginPackage can not contain assemblies included in the Microsoft.CrmSdk.CoreAssemblies or Microsoft.CrmSdk.Workflow nuget packages."
318+
319+
You can correct this situation by following the information in this article, [Controlling dependency assets](/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assets), so that these dependency assets are not included in your package. You'll need to mark the assembly reference using the \<PrivateAssets> tag in the project configuration file (.csprog).
298320

299321
## Using System.Text.Json
300322

0 commit comments

Comments
 (0)