x
Main Site login Signup

How to use the awesomium in a different location from the app root?

How to use the awesomium in a different location from the app root? (C#, .NET)

For example, in the folder "awesomium":

 C:\Program Files\MyApp\MyApp.exe
 C:\Program Files\MyApp\awesomium\awesomium.dll
 C:\Program Files\MyApp\awesomium\Awesomium.Windows.Controls.dll
 C:\Program Files\MyApp\awesomium\AwesomiumControl.dll
 C:\Program Files\MyApp\awesomium\icudt.dll
 C:\Program Files\MyApp\awesomium\awesomium_process
 C:\Program Files\MyApp\awesomium\xinput9_1_0.dll
 C:\Program Files\MyApp\awesomium\debug.log
 C:\Program Files\MyApp\awesomium\inspector.pak
 C:\Program Files\MyApp\awesomium\pdf_js.pak
 ...
asked Mar 25, 2016 at 12:05 PM avatar image Viamo 0
more ▼
(comments are locked)
10|1100 characters needed characters left

1 answer: sort voted first

Note that if Awesomium is properly distributed, the assemblies and native dependencies should be deployed to the target system's GAC so they don't actually need to be anywhere around the executable.

For details, read: Distributing Awesomium.NET.

However, is you're not deploying to GAC and you need to load the libraries from a location other then the app's root, check this utility.

To use this helper, call AwesomiumResolverService.Initialize passing the directory with the libraries, anytime before an attempt to load Awesomium (like in your application's Main method).

answered Jun 15, 2016 at 03:17 AM avatar image Perikles C. Stephanidis ♦♦ 10.7k
more ▼
(comments are locked)
10|1100 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.