Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: How to add the ClearScript.V8 assemblies into GAC

$
0
0
Hello!

I use JavaScript engines in most modules of my open-source library - Bundle Transformer. JavaScript engines are used not directly, but through the wrapper – JavaScriptEngineSwitcher. Currently, I have a problem with using the Noesis Javascript .NET library under 64-bit version of IIS 8.X, and I see as a replacement the ClearScript.V8 library.

But there are following problems:
  1. Bundle Transformer is used in some CMS, which register all used assemblies in GAC.
  2. Bundle Transformer is used in the web projects of various types, including ASP.NET Web Pages sites. In ASP.NET Web Pages sites cannot store assemblies for different processor architectures in the root of bin directory, therefore it should be placed in subdirectories. For such cases in static constructor of the V8JsEngine class I determine and add search paths of the ClearScript.V8 assemblies. In order to be use JavaScriptEngineSwitcher.V8 in different projects types I wrote a special NuGet package.
In ClearScript.V8 it would be good to have the ability to set own assembly resolver, or at least have the ability to affect the result of V8Proxy.GetDirPaths method.

In addition, it would be good if the ClearScript assembly will be divided into 3 assemblies:
  1. ClearScript.Common - common types and utilities
  2. ClearScript.Windows - windows script engines
  3. ClearScript.V8 - V8 script engine proxy

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>