-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembly 'CefSharp' does not have a strong name #1
Comments
I've fixed some issues with the project files that should allow you to compile the project yourself using VS2010 (i know you were having trouble), can you give that a try. If it works you could sign the assembly yourself. I've not yet decided on my signing and release strategy but this is likely something I will do in the near future. see: https://msdn.microsoft.com/en-us/library/6f05ezxy.aspx and set the key file under Properties->Linker->Advanced |
I try. After studio converts project files: 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall std::basic_string,class std::allocator >::length(void)const " (__imp_?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::operator+=(class std::basic_string,class std::allocator > const &)" (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::operator+=(char const *)" (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(struct std::basic_string,class std::allocator >::_Has_debug_it)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@U_Has_debug_it@01@@Z) referenced in function "bool __cdecl CefRegisterPlugin(struct CefPluginInfo const &)" (?CefRegisterPlugin@@YA_NABUCefPluginInfo@@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) referenced in function "public: static class std::basic_string,class std::allocator > __cdecl CefStringTraitsUTF16::to_string(struct _cef_string_utf16_t const *)" (?to_string@CefStringTraitsUTF16@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBU_cef_string_utf16_t@@@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::operator=(class std::basic_string,class std::allocator > const &)" (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) referenced in function "public: static class std::basic_string,class std::allocator > __cdecl CefStringTraitsUTF16::to_string(struct _cef_string_utf16_t const *)" (?to_string@CefStringTraitsUTF16@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBU_cef_string_utf16_t@@@Z) 1>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *,unsigned int)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z) referenced in function "public: static class std::basic_string,class std::allocator > __cdecl CefStringTraitsUTF16::to_string(struct _cef_string_utf16_t const *)" (?to_string@CefStringTraitsUTF16@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBU_cef_string_utf16_t@@@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) referenced in function "protected: class std::_Tree,class CefStringBase,struct std::less >,class std::allocator const ,class CefStringBase > >,0> >::iterator __thiscall std::_Tree,class CefStringBase,struct std::less >,class std::allocator const ,class CefStringBase > >,0> >::_Insert(bool,struct std::_Tree_nod,class CefStringBase,struct std::less >,class std::allocator const ,class CefStringBase > >,0> >::_Node *,struct std::pair const ,class CefStringBase > const &)" (?_Insert@?$_Tree@V?$_Tmap_traits@V?$CefStringBase@UCefStringTraitsUTF16@@@@V1@U?$less@V?$CefStringBase@UCefStringTraitsUTF16@@@@@std@@V?$allocator@U?$pair@$$CBV?$CefStringBase@UCefStringTraitsUTF16@@@@V1@@std@@@3@$0A@@std@@@std@@IAE?AViterator@12@_NPAU_Node@?$_Tree_nod@V?$_Tmap_traits@V?$CefStringBase@UCefStringTraitsUTF16@@@@V1@U?$less@V?$CefStringBase@UCefStringTraitsUTF16@@@@@std@@V?$allocator@U?$pair@$$CBV?$CefStringBase@UCefStringTraitsUTF16@@@@V1@@std@@@3@$0A@@std@@@2@ABU?$pair@$$CBV?$CefStringBase@UCefStringTraitsUTF16@@@@V1@@2@@Z) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Throw(class stdext::exception const &)" (__imp_?_Throw@std@@YAXABVexception@stdext@@@Z) referenced in function "public: void __thiscall stdext::exception::_Raise(void)const " (?_Raise@exception@stdext@@QBEXXZ) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Throw(class stdext::exception const &)" (__imp_?_Throw@std@@YAXABVexception@stdext@@@Z) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Throw(class stdext::exception const &)" (__imp_?_Throw@std@@YAXABVexception@stdext@@@Z) 1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ) referenced in function "protected: void __thiscall std::vector,class std::allocator > >::_Insert_n(class std::_Vector_const_iterator,class std::allocator > >,unsigned int,class CefStringBase const &)" (?_Insert_n@?$vector@V?$CefStringBase@UCefStringTraitsUTF16@@@@V?$allocator@V?$CefStringBase@UCefStringTraitsUTF16@@@@@std@@@std@@IAEXV?$_Vector_const_iterator@V?$CefStringBase@UCefStringTraitsUTF16@@@@V?$allocator@V?$CefStringBase@UCefStringTraitsUTF16@@@@@std@@@2@IABV?$CefStringBase@UCefStringTraitsUTF16@@@@@Z) 1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty > >::~_Container_base_aux_alloc_empty > >(void)" (??1?$_Container_base_aux_alloc_empty@V?$allocator@V?$CefRefPtr@VCefV8Value@@@@@std@@@std@@IAE@XZ) 1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty > >::_Container_base_aux_alloc_empty > >(class std::allocator >)" (??0?$_Container_base_aux_alloc_empty@V?$allocator@V?$CefRefPtr@VCefV8Value@@@@@std@@@std@@IAE@V?$allocator@V?$CefRefPtr@VCefV8Value@@@@@1@@Z) |
Oh, i set in project properties platform toolset to v90 and all was done. |
In any way - it's not so good way. When i compile project with v90 toolset - i got assembly, but it can't be loaded in normal (v4.0) way - "System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information." Of course adding useLegacyV2RuntimeActivationPolicy="true" solve problem with assembly loading, but it is wrong way for new code.
Better if we can use v100 toolset, and support targeting to .net 4 client profile. |
Chromium and CEF can only be build with VS2005 or VS2008. The only mixed mode assembly is CefSharp itself, I am surprised that building this with VS2010 and v90 isn't enough. Maybe there is a way to set the target framework version though I can't see it in the project settings. I'll hopefully have a copy of VS2010 available to me in the next couple of weeks at which point I'll give it a try myself. |
Hmm... In my build HandlerAdapter::HandleAfterCreated never executed - and on load i got null reference exception... :( |
I'm fantastic idiot.
For now no any problems. PS: May be wrong: RaiseConsoleMessage doesn't check that ConsoleMessageEventHandler attached. Also HandlerAdapter create message object even if it is really dosn't not needs. |
glad to hear it's working. yeah I thought that as well when I first started code C++/CLI, but if you disassemble the generated raise_ConsoleMessage method you can see that if performs a null check in there for you. An unsual case where C++/CLI is more forgiving than C#.
see the branch at IL_000a |
Cool! :) I have 2 questions:
|
All good points.. I'm actually working on number 3 at the moment but frames are making it tricky. Could you do me a favour and open individual issues for each of these suggestions? That'd be superb, this issue is getting a bit off topic. |
Okay, i create issues, but little later. |
Issue fixed thanks to fddima. |
Ignore intellisense files and Debug directory - thanks to mwisnicki
Add nuget.org as package source for xunit @appveyor
Merge back changes already in pull requests to cefsharp/CefSharp
Merge from focus-changed-1256 to master.
… should use SetAsChild method instead (I know the example is incomplete, contributions welcome). newBrowser should only be used in WPF/OffScreen
Update from original base
Assembly CefSharp is not usable, 'cause is not signed...
I need binary package with signed assembly! :)
The text was updated successfully, but these errors were encountered: