Cannot load chakra core.dll error while running hello world sample

I am trying to run the chakra core C # sample specified here ( https://github.com/Microsoft/ChakraCore/wiki/Embedding-ChakraCore#before-you-start ), but getting the error: enter image description here

I tried to install this as well, but getting the error:

Install-Package JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64 -Version 2.4.6 

enter image description here

According to my understanding, if I want to use chakracore in my project (console application or web application), then I only need chakra core.dll, but still I get an error that the core chakra kernel did not find.

I tried in visual studio 2015 and 2017 but the same problem.

I have little confusion if anyone can answer this:

1) Can chakracore execute any javascript code?

2) Can I transfer the json result to my javascript and get the json result from javascript by executing this javascript code with chakracore?

How to run a sample example application that should display hello world in a console application executing javascript code?

+1
source share
1 answer

You do not need a Switcher Engine. You only need to specify the official Microsoft.ChakraCore NuGet package from the project executable.

  • Right click on node packages in HelloWorld project
  • select "Manage NuGet Packages"
  • enter "ChakraCore" in the search field
  • select Microsoft.ChakraCore (this is not the first item for me)

enter image description here

Once you do this, it should launch and resolve the ChakraCore.dll included in the NuGet package, due to the way the props are executed in the package.

+1
source

Source: https://habr.com/ru/post/1345204/


All Articles