plugin reference woes

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
drtech
Posts: 1647
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

plugin reference woes

Post by drtech » Sun Oct 18, 2020 8:26 pm

I can't seem to lick the :

"are you missing a directive or an assembly reference?"

error when compiling my plugin. It keeps giving me an error that opendental and opendentbusiness are not found, yet the references are there, the projects there, removed, added again, etc. No luck and I can't figure out why it is throwing this error and not allowing me to compile the plugin.

Any ideas that anyone has used to fix this issue?
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
wjstarck
Posts: 935
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: plugin reference woes

Post by wjstarck » Mon Oct 19, 2020 11:02 am

When this happens to me, it's usually because some change has been made in the full Open Dental solution and not just OpenDental and OpenDentBusiness, that OpenDental and OpenDentBusiness depend on. So I re-compile the whole Open Dental solution with all the projects, and then re-compile my Plugin. I usually quit and restart Visual Studio just for safe measure.

If that still doesn't work, I do a clean solution, then toss the bin and obj folders for all three projects (plugin, OpenDental, OpenDentBusiness). Then I make sure that all the references point to where they should be pointing. Then rebuild.

This seems to fix this problem. Hope that helps 8)
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
drtech
Posts: 1647
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Re: plugin reference woes

Post by drtech » Tue Oct 20, 2020 8:01 am

I am trying as you described and still seem to have issues, the references to OpenDental and OpenDentBusiness keep seeming to fail (the normal icon when I add the reference changes to a little ! icon next to it in Visual Studio after I try to compile...like the reference isn't pointing to the right place, but I can't figure out why this is happening...)
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: plugin reference woes

Post by cmcgehee » Tue Oct 20, 2020 1:34 pm

When I have this issue, sometimes it helps to remove the project references and re-add them.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: plugin reference woes

Post by jordansparks » Mon Oct 26, 2020 10:31 pm

I think it's because you need to change the version of dot Net in your plugin to be newer, like 4.7.2.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
drtech
Posts: 1647
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Re: plugin reference woes

Post by drtech » Thu Oct 29, 2020 11:50 am

Jordan, YES! I actually figured that out last night before reading your response here after pulling my hair out for a few weeks. It helps to actually read the compiler output and not just the "error" tab on build....as I discovered it was actually telling me that in a round about way at the beginning of the build.. :p ...then come to find out you already posted about it here! Thanks.
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: plugin reference woes

Post by jordansparks » Sat Oct 31, 2020 3:18 pm

I've never seen an informative message for that problem. I've repeatedly lost hours of time as I have to relearn that hard lesson.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply