VB.net macro cannot find .dll during execution

I've made a macro that works great in the debug mode (Visual Studio play button) but when I build it and try to run it, it stops mid-way and says:

"Cannot open *path + filename of built macro*.dll"

This message appears right after the macro creates a new drawing and inserts a Back view of the model. Judging by the behavior, it seems that it occurs because SW has lost contact with the macro & can't access it again or because SW wants to re-access the macro even though it is already accessing it.

I checked and it seems that other people have had this problem. I ensured that the interop .dll files are all in the same directory.

This is a thread with a similar problem: https://forum.solidworks.com/message/238541

- I would rather not convert my vb.net macro to vba like they did.

Hopefully it's a matter of changing the way Visual Studio builds the .dll

Any help would be appreciated!

Thank you

SolidworksApi macros