Search Unity

Linking to Microsoft.Azure.CognitiveServices.Search.WebSearch.dll? throws "Unloading broken assembly

Discussion in 'Windows' started by MSAlphaDrako, Aug 16, 2019.

  1. MSAlphaDrako

    MSAlphaDrako

    Joined:
    Aug 10, 2019
    Posts:
    1
    Hello all,

    Is it possible to link to Microsoft.Azure.CognitiveServices.Search.WebSearch.dll in Unity?

    I keep getting these errors when I try to do it:
    upload_2019-8-15_18-32-41.png

    My environment:
    • I have the dlls (Microsoft.Azure.CognitiveServices.Search.WebSearch.dll + dependencies) in Assets\WebSearch\Plugins
    • I have a Assets\link.xml with content:
    upload_2019-8-15_18-34-56.png
    • My player is set for:
    upload_2019-8-15_18-35-41.png

    • I have file Assets\csc.rsp with content:
    upload_2019-8-15_18-37-3.png

    • My DLLs built against .Net Framework 4.5.2 (I used ILSpy to verify this)
    AFAIK I have done all what is necessary to link to the WebSearch dll yet I receive the "Unloading broken assembly … , this assembly can cause crashes in the runtime"

    Am I missing something?
    Is it even possible to do it?

    Any help/suggestion is welcome :)
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Usually that error means that some dependency of that assembly is missing. I think the error message is improved in newer versions of Unity. Any chance you could download Unity 2019.3 alpha and just see whether you get a better error message?