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