web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when Registering...
Power Apps
Unanswered

Error when Registering new Plugin Package "PluginPackage cannot contain assemblies included in the Microsoft.CrmSdk.CoreAssemblie..."

(1) ShareShare
ReportReport
Posted on by 7

Issue
Below error occurs after trying to deploy plugin project using Visual Studio 2022 and Power Platform Tools for VS 2022.

"PluginPackage cannot contain assemblies included in the Microsoft.CrmSdk.CoreAssemblies or Microsoft.CrmSdk.Workflow nuget packages. Found assembly Microsoft.Crm.Sdk.Proxy, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 in the package. (mscorlib)"

 

How can I ensure Microsoft.Crm.Sdk.Proxy is not included in the generated Nuget package?

 

I have tried setting attribute PrivateAssets="All" on all PackageReference in the project file as per this forum post Solved: Dependent Assembly - PluginPackage can not contain... - Power Platform Community (microsoft.com)

 

Steps to Recreate. 

Create new Solution using Power Platform Solution Template.
Include a Plugin Project.

Right click on a table and create a plugin step and plugin. 
Build plugin project

Deploy plugin project. -> Above Error Occurs

Register New Package using Plugin Registration Tool -> Above Error Occurs

I have the same question (0)
  • marksewell Profile Picture
    2 on at

    Hi,

     

    I think its a new bug and the old solutions are not applicable,  i can only provide a workaround - once you have built the dll open the NuGet package in NuGet Package explorer  find the crm dll and delete it from the package and save then you can deploy from visual studio - you need to do this after every build.

     

    Mark

  • Pacad365 Profile Picture
    3 on at

    I got same errors, someone has a fixing solution or workaround to suggest ?

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @DD1231 @Pacad365 Can you post screenshot of what your VS solution and project structure look like? Particularly  your project build properties and project assembly reference properties

  • DD12 Profile Picture
    7 on at

    Unfortunately, not we binned the VS2022 Power Platform Tools approach and used the PAC CLI instead.

     

    Have you tried recreating the issue? @parvezghumra can you successfully build and deploy plugins using VS 2022 and Power Platform Tools for VS 2022?

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @DD1231 I have been using VS 2022 to build my plugin projects and packages but then used the Plugin Registration Tool to register them in the development environment. I have never tried Power Platform Tools for VS 20222.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard