Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Error: The type or namespace name 'Awesomium' could not be found

29.05.2018 (👁5589)


 

Description:

When compiling my Winforms-Word-Addin application the error is that the webclient program Awesomium can not be found.

 

error:

The type or namespace name 'Awesomium' could not be found (are you missing a using directive or an assembly reference?)

 

 

 

Complete error message in Visual Studio

Severity

Code

Description

Project

File

Line

Suppression State

Error

CS0246

The type or namespace name 'Awesomium' could not be found (are you missing a using directive or an assembly reference?)

Word_Add_In_Microsoft_Programmierer

C:\_Daten\Desktop\VS_Projects\WinForms\Word_Add_In_Microsoft_Programmierer\Word_Add_In_Microsoft_Programmierer\frmTranslate.cs

19

N/A

 

Found a mistake:

When examining the Project-> References and then the references to Awesomium.Core and Awesomium.Windows.Forms, Path finds that it is an orphaned path.

In this case, even the output directory / bin / debug was referenced, which is often recreated.

 

C:\_Daten\Desktop\VS_Projects\WinForms\Word_Add_In_Microsoft_Programmierer\Word_Add_In_Microsoft_Programmierer\bin\Debug\Awesomium.Core.dll

 

 

Solution:

You have to copy the files of the included add-on program Awesomium into a separate directory to the project.

For example in Project / _embed and all necessary additional files, which are used as reference in the Windows project.

Avformat-53.dll

Avcodec-53.dll

libGLESv2.dll

libEGL.dll

inpsector.pak

icudt.dll

avutil-51.dll

xinput9_1_0.dll

pdf_js.pak

 

 

Renew reference

Delete old reference and create new reference

 

Then remove the old reference and create two new references under References-> Add Reference

 

in dialog: Select the files to reference

In this case, refer to Awesomium.Core.dll and Awesomium.Windows.Forms.dll

 

Reference Manager shows the details of the connection

Awesomium.Core.dll

Awesomium.Windows.Forms.dll

 

 

Unfavorable path

Wrong path: Do not put any references in / bin / debug because this path is always recreated