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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

(0) ShareShare
ReportReport
Posted on by 91

I was trying to find out if "Microsoft.CrmSdk.XrmTooling.CoreAssembly" nuget package works as a partial trust or a full trust assembly?

The reason for asking this question is because when trying to ilmerge this assembly with my plugin dll file, the plugin-registration tool is throwing an error as follows:

 <Message>Unable to load plug-in assembly.</Message>

If this is Partial Trust assembly, is there a way I can connect to another CRM instance from within a plugin?

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hello,

    I played with XrmTooling and you would not be able to use it from plugins that are sandboxed.

    If you want to connect to another instance you should use WebApi instead - docs.microsoft.com/.../web-api-samples-csharp

  • Shalabh Gupta Profile Picture
    91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Bipin,

    I want to connect to another CRM instance, hence using Tooling namespace. If you have a working code to connect to another CRM instance from within your plugin, can you please share your code with us?

  • Shalabh Gupta Profile Picture
    91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Miguel,

    I thought that was selected by-default, at least my ILMerge build was successful so I assumed so, I can try that for sure to see if that might be the reason.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi,

    All operations/methods avaiable in Microsoft.CrmSdk.XrmTooling.CoreAssembly can be used using context iorganization service.

    Why is that you need this dll to be merged in plugin?

    If found helpful, Please mark my answer verified.

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Hi Shalabh,

    Why are you using ILMerge for those dll's? Can you set "copy local to false" inside visual studio for those dll'sand try again ?

    pastedimage1593769493356v1.png

  • Shalabh Gupta Profile Picture
    91 on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    Thanks for your reply.. 

    Tried with multiple nuget package versions, same issue.

    Also looked at your link, it doesn't mention about this tooling assembly if it's an issue with partial trust. Do you have any working plugin which uses this tooling assembly? 

  • Anthony Dong Profile Picture
    on at
    RE: Microsoft.CrmSdk.XrmTooling.CoreAssembly to be used in crm plugin?

    hi ,

    same issue talked here,, hope it's useful for you social.microsoft.com/.../unable-to-load-plugin-assembly-error-with-crm-online

    Also, did you download correct version www.nuget.org/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans