Getting Started with AwesomiumSharp
AwesomiumSharp is our official .NET wrapper, it allows you to use Awesomium from within C#, WPF, WinForms, VB.NET, etc.
This project is open-source and maintained on GitHub at: https://github.com/khrona/AwesomiumSharp
We typically include the latest build of AwesomiumSharp inside the "wrappers" directory of each SDK release.
Using AwesomiumSharp
Before we begin, make sure that you've got the following:
- The latest Awesomium v1.6 SDK for Windows (download it here)
- Microsoft Visual Studio 2010
Building AwesomiumSharp
- Open up the "wrappers" folder inside the SDK, and browse to "AwesomiumSharp.sln".
- Launch the AwesomiumSharp solution inside Visual Studio.
- From the file menu select Build -> Build Solution.
- It should build with no errors.
Playing with the Samples
The best way to learn any API is to see it in action. There are several sample projects that target different frameworks (WPF, WinForms, VB.NET, etc.) inside the AwesomiumSharp solution-- make sure to run them, look through their code, and see how they tick.
Using AwesomiumSharp in Your Own Application
There's a couple basic things you need to do to use the framework in your own application.
- Add a reference to AwesomiumSharp to your project.
-
Add the following line to the top of your C# code:
using AwesomiumSharp;
-
Or, if you are using VB.NET, add the following line instead:
Imports AwesomiumSharp
-
Copy over the following files to your executable's directory:
- Awesomium.dll
- AwesomiumProcess.exe
- icudt42.dll
- 'locales' folder
- AwesomiumSharp.dll