How do I release a .dll so that I can rebuild it?

Using (or providing) Microsoft.NET Classes

How do I release a .dll so that I can rebuild it?

Postby SMNR on Fri Oct 26, 2018 9:34 am

If I load an external DLL using ⎕USING, I cannot rebuild the .dll file (in visual studio, say), since that file is in use. The only way I have been able to get around that is to close all instances of APL that are using that .dll, rebuild it, and then re-open it.

I have tried ⎕EX-ing the namespaces that it is loaded into, but that doesn't seem to work. I've even tried setting ⎕USING within each of those namespaces to '' before ⎕EX-ing, and that also also doesn't help.

Is there some way around this, or is restarting my only option?
SMNR
 
Posts: 2
Joined: Wed Oct 24, 2018 7:09 am

Re: How do I release a .dll so that I can rebuild it?

Postby StefanoLanzavecchia on Sat Oct 27, 2018 3:13 pm

Try File > Close AppDomain to release all the .NET DLLs.
There is also an i-beam to obtain the same result: http://help.dyalog.com/17.0/Content/Lan ... _AppDomain

I hope it helps.
--
Stefano
User avatar
StefanoLanzavecchia
 
Posts: 109
Joined: Fri Oct 03, 2008 9:37 am

Re: How do I release a .dll so that I can rebuild it?

Postby SMNR on Wed Oct 31, 2018 12:37 pm

Hi Stefano -

I tried that, and it didn't work as expected. It failed (exited with 1), but had released a lot of other .dlls that I did not want to.

Is there no way to release a single one?

Cheers,

Simon
SMNR
 
Posts: 2
Joined: Wed Oct 24, 2018 7:09 am


Return to Microsoft.NET

Who is online

Users browsing this forum: No registered users and 1 guest