chuongmep / RevitAddInManager

Revit AddinManager update .NET assemblies without restart Revit for developer.
MIT License
299 stars 52 forks source link

Cannot load .dll from an external source #40

Closed aryanfaghihi closed 1 year ago

aryanfaghihi commented 2 years ago

I use Parallels to develop for Revit and I store my projects on my Mac partition (\\MAC\...). Loading compiled files from the MAC partition results in

System.NullRerefenceException as shown in the picture below

image

To Reproduce Steps to reproduce the behavior:

  1. Create a Visual Studio project and store it in your MAC partition
  2. Compile the projec
  3. Load the .dll files from the MAC parition

Expected behavior This should work or at least give a reasonable error so it is easier to debug.

It took me a very long time to figure this out. Part of the reason I'm leaving this here is to help others facing similar issues.

chuongmep commented 2 years ago

Hi @aryanfaghihi, At the moment I don't have macos to check help you, do you can try use debug in debug mode project?

aryanfaghihi commented 2 years ago

Sure, I'll give it a go when I get some free time

chuongmep commented 2 years ago

@aryanfaghihi I just guess virtual computer have way mapping and save by another way, path will be come relative path.

chuongmep commented 1 year ago

Fixed in next version

image