microsoft / ClearScript

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).
https://microsoft.github.io/ClearScript/
MIT License
1.77k stars 148 forks source link

How to use ClearScript in VC++ project? #544

Closed fangjialivico closed 1 year ago

fangjialivico commented 1 year ago

In my VC++ project, we want to use ClearScript, but I can't find any instructions about how to use ClearScript in VC++ project.

Could you give me an example?

ClearScriptLib commented 1 year ago

Hi @fangjialivico,

I can't find any instructions about how to use ClearScript in VC++ project.

ClearScript is designed for .NET applications and optimized specifically for C#. You can use it with C++/CLI, but native C++ applications are better off interfacing directly with V8, which exposes a C++ API.

Thanks!

ClearScriptLib commented 1 year ago

Please reopen this issue if you have additional thoughts about this topic. Thank you!