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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How do you reference other DLL's from a plugin?

(0) ShareShare
ReportReport
Posted on by 5

OnPremises Dynamics CRM.

I have sucessfully created a plugin that modifies the account record.

Plugin1
+Test()

So when i call the above the Test method is called (it throws a specific exception 'this test worked')

However, when i create a new Project called Accounts within the solution and call Test() in that everything compiles perfectly ok.  But when I publish it i get a fatal error:

Plugin1
+Accounts.DLL
++Test()

So, what is the recommened/supported way of doing this?  Can it be done at all?

I don't want to use Azure because i don't have the time to invest, we are more interested right now in getting this up and running as a Phase1 as quickly as possibe.  WCF is an optoin though and one i am seriously considering right now.

PS:  Some background I have Tried; copying to local bin folders on server/ilmerge/xrmtoolkit/msdevcrmtoolkit/shared prjects - all fail one way or another.  Ilmerge doesn't produce any output but says it merged everything into bin/debug. SharedProjects builds but on deploy errors with 'illegal charcters in path' (there aren't any i can see).

I have the same question (0)
  • Vijay Tailor Profile Picture
    431 on at

    Hi,

    As per my understanding. you can use ILMerge for that scenario.

    Please find below url hope it will help you.

    cloudblogs.microsoft.com/.../

    Thanls

  • omegadcuk Profile Picture
    5 on at

    Thanks Vijay.  I haven't been successful with ilmerge so far but i was trying to use the extension that integrates into VS2017.  I will give that suggested post a go.  However my only concern is that i read on this forum somewhere that ILMerge is no supported in Dynamics 365 OnPremises anymore.  so i was trying to find out what alternatives are available and if i am truly on the correct path with Plugins?

  • Suggested answer
    Vijay Tailor Profile Picture
    431 on at

    Hi,

    agree with you,

    But check below-mentioned URL, Hope it will help you somehow .

    community.dynamics.com/.../894392

    www.develop1.net/.../ILMergeNotSupported

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans