Skip to content

Commit

Permalink
Improve CLR assembly loading
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Jan 11, 2025
1 parent 2c53ff7 commit 8390537
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/portal/runtime/clr/assembly.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load-file dll)))

(def ^:private deps
'{clojure.data.json {:nuget/version "2.4.0"}})

#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Text.Encoding")
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Text.Json")
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Net.WebSockets")
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Net")
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Net.HttpListener")
#_{:clj-kondo/ignore [:unresolved-symbol]}
(assembly-load "System.Net.Http")

(def ^:private deps
'{clojure.data.json {:nuget/version "2.4.0"}})

(load-deps deps)

; (assembly-load-from (str clojure.lang.RT/SystemRuntimeDirectory "System.Diagnostics.Process.dll"))

0 comments on commit 8390537

Please sign in to comment.