You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/dependent-assembly-plugins.md
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Dependent Assembly plug-ins (preview)
3
3
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
5
5
ms.reviewer: jdaly
6
6
ms.topic: article
7
7
author: divkamath
@@ -286,6 +286,10 @@ This command opens a dialog so you can select a NuGet package to update the plug
286
286
287
287
## Design notes
288
288
289
+
Here a a few things to consider when creating plug-in packages.
290
+
291
+
### Generating the NuGet package
292
+
289
293
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.
290
294
291
295
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:
295
299
-[Create a NuGet package using MSBuild](/nuget/create-packages/creating-a-package-msbuild)
296
300
-[NuGet pack and restore as MSBuild targets](/nuget/reference/msbuild-targets)
297
301
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).
0 commit comments