Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prevent duplicate loading of compiled C# DLL components.
#2
Without installing VS or VSC, I’d like to use the following approach: compile the code of several classes into a single DLL, then load it once in a main function. After that, I want to call its functions from other functions or subfunctions associated with the main one, without reloading the DLL each time.

Is this possible to achieve? Thank you very much.

compileFiles=a.cs; b.cs; c.cs

Macro Macro4
Code:
Copy      Help
CsScript x
str Opt=
;searchDirs=$qm$
;references=System.Core;Microsoft.CSharp;netstandard
;compilerOptions=/warn:1
;compileFiles=a.cs;b.cs;c.cs
x.SetOptions(Opt)

str _="$qm$\all.dll"; x.Compile("" _)


Messages In This Thread
RE: Prevent duplicate loading of compiled C# DLL components. - by Davider - 06-09-2025, 04:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)