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).

  • Suggested answer
    Vijay Tailor Profile Picture
    431 on at
    RE: How do you reference other DLL's from a plugin?

    Hi,

    agree with you,

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

    community.dynamics.com/.../894392

    www.develop1.net/.../ILMergeNotSupported

  • omegadcuk Profile Picture
    5 on at
    RE: How do you reference other DLL's from a plugin?

    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?

  • Vijay Tailor Profile Picture
    431 on at
    RE: How do you reference other DLL's from a plugin?

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans