Closed nasser closed 3 years ago
In the Nostrand.core
ns, the function resolve-assembly-load
contains an error.
We only want what's before the first ,
of the asm and append the ext
to it.
A fix :
(defn resolve-assembly-load [asm]
(let [candidates (for [prefix @-assembly-path
ext ["" ".dll" ".exe"]]
(let [file-name (-> asm (string/split (re-pattern (str ","))) first)]
(Path/Combine prefix (str file-name ext))))
full-asm-path (first (filter #(File/Exists %) candidates))]
(when full-asm-path
(assembly-load-from full-asm-path))))
strange, what comes after ,
on .NET Core?
The asm given looks like this 'Lokad.ILPack, Version=0.1.5.0, Culture=neutral, PublicKeyToken=null'
ah understood. that's the so-called fully qualified name.
given
mytasks.clj
with the following content:and the command
where
nos
was built for .NET Core the following error results:Looks like the load path is not being set correctly on .NET Core.
Even when moving files into the load path, I still get
which indicates a packaging error.