Microsoft.ClearScript.Core
7.5.1
Prefix Reserved
Requires NuGet 5.10.0 or higher.
dotnet add package Microsoft.ClearScript.Core --version 7.5.1
NuGet\Install-Package Microsoft.ClearScript.Core -Version 7.5.1
<PackageReference Include="Microsoft.ClearScript.Core" Version="7.5.1" />
<PackageVersion Include="Microsoft.ClearScript.Core" Version="7.5.1" />Directory.Packages.props
<PackageReference Include="Microsoft.ClearScript.Core" />Project file
paket add Microsoft.ClearScript.Core --version 7.5.1
#r "nuget: Microsoft.ClearScript.Core, 7.5.1"
#:package Microsoft.ClearScript.Core@7.5.1
#addin nuget:?package=Microsoft.ClearScript.Core&version=7.5.1Install as a Cake Addin
#tool nuget:?package=Microsoft.ClearScript.Core&version=7.5.1Install as a Cake Tool
Description
ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.
Features
- Simple usage; create a script engine, add your objects and/or types, run scripts
- Support for several script engines: Google's V8, Microsoft's JScript and VBScript
- Exposed resources require no modification, decoration, or special coding of any kind
- Scripts get simple access to most of the features of exposed objects and types:
- Methods, properties, fields, events
- (Objects) Indexers, extension methods, conversion operators, explicitly implemented interfaces
- (Types) Constructors, nested types
- Full support for generic types and methods, including C#-like type inference and explicit type arguments
- Exposed .NET collections support native script iteration mechanisms:
- Scripts can invoke methods with output parameters, optional parameters, and parameter arrays
- Script delegates enable callbacks into script code
- Support for exposing all the types defined in one or more assemblies in one step
- Optional support for importing types and assemblies from script code
- The host can invoke script functions and access script objects directly
- Full support for script debugging
- V8 Support for fast data transfer to and from JavaScript typed arrays
- V8 Support for JavaScript modules
- V8 JScript Support for CommonJS modules
- V8 Automatic conversion between .NET
BigIntegerand JavaScriptBigInt. - V8 Optional automatic conversion between .NET
DateTimeand JavaScriptDate. - V8 Optional automatic conversion between .NET tasks and JavaScript promises.
- Support for .NET 5.0+, .NET Framework 4.6.2+, .NET Core 3.1, and .NET Standard 2.1.
- Support for Windows (x86/x64/arm64), Linux (x64/arm/arm64), and macOS (x64/arm64).
Installation
Complete package
All in one, for all supported platforms.
Composite packages
Everything you need for one platform.
| Platform | Packages |
|---|---|
| Windows | ClearScript ClearScript.win-arm64 |
| Linux | ClearScript.linux-x64 ClearScript.linux-arm ClearScript.linux-arm64 |
| macOS | ClearScript.osx-x64 ClearScript.osx-arm64 |
Component packages
Cross-platform libraries and data.
| Component | Packages |
|---|---|
| Core | ClearScript.Core |
| JScript/VBScript | ClearScript.Windows.Core ClearScript.Windows |
| V8 | ClearScript.V8 Microsoft.ClearScript.V8.ICUData |
V8 native assembly packages
Platform-specific V8 libraries.
Documentation
Acknowledgments
We'd like to thank:
- The V8 team.
- The Jekyll team.
- Kenneth Reitz for generously providing the
Httpbinservice. - Michael Rose for generously providing the So Simple Jekyll theme.
- Toptal for generously providing the Toptal JavaScript Minifier.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 is compatible. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Microsoft.Win32.Registry (>= 5.0.0)
-
.NETFramework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.0)
- Microsoft.CSharp (>= 4.7.0)
- System.Memory (>= 4.5.5)
- System.Net.Http (>= 4.3.4)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.7.1
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.0)
- Microsoft.CSharp (>= 4.7.0)
- System.Memory (>= 4.5.5)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.1
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
net5.0
- Microsoft.Win32.Registry (>= 5.0.0)
-
UAP 10.0
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.0)
- Microsoft.NETCore.UniversalWindowsPlatform (>= 6.2.14)
- System.Memory (>= 4.5.5)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Microsoft.ClearScript.Core:
| Package | Downloads |
|---|---|
|
Microsoft.ClearScript.V8
A library for adding scripting to .NET applications. This package supports the V8 JavaScript engine. |
|
|
Microsoft.ClearScript.Windows.Core
A library for adding scripting to .NET applications. This package supports the Windows Script engines (JScript and VBScript). |
|
|
RetailForce.Fiscalisation
Fiscalisation unit and offline client for digital receipt. |
|
|
Lobster.Boot
LobsterBoot核心类库 |
|
|
SunamoClearScript
Wrapper around Microsoft.ClearScript offering easier work |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Microsoft.ClearScript.Core:
| Repository | Stars |
|---|---|
|
nhmkdev/cardmaker
An application that generates graphics via data sources.
|
|
|
ChenZ2000/YTPlayer
Accessible Netease Music | 易用的网易云音乐客户端
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.5.1 | 1,024,246 | 5/10/2026 |
| 7.5.0 | 5,114,354 | 3/7/2025 |
| 7.4.5 | 3,240,306 | 3/25/2024 |
| 7.4.4 | 930,509 | 10/17/2023 |
| 7.4.3 | 913,015 | 8/19/2023 |
| 7.4.2 | 318,866 | 6/1/2023 |
| 7.4.1 | 570,836 | 4/8/2023 |
| 7.4.0 | 59,305 | 3/9/2023 |
| 7.3.7 | 284,878 | 1/23/2023 |
| 7.3.6 | 107,992 | 12/20/2022 |
| 7.3.5 | 72,419 | 11/12/2022 |
| 7.3.4 | 205,801 | 9/29/2022 |
| 7.3.3 | 7,319 | 9/28/2022 |
| 7.3.2 | 36,063 | 9/15/2022 |
| 7.3.1 | 547,602 | 6/29/2022 |
| 7.3.0 | 61,292 | 6/2/2022 |
| 7.2.5 | 203,516 | 5/1/2022 |
| 7.2.4 | 79,355 | 3/30/2022 |
| 7.2.3 | 88,506 | 3/5/2022 |
| 7.2.2 | 109,807 | 2/6/2022 |