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

Notifications

Announcements

No record found.

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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans