Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Can't publish in Windows store. wininet.ddl is calling unsupported libraries

Discussion in 'Windows' started by FFUFUnity, Jun 13, 2017.

  1. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I'm trying to publish my application in the windows store but the tests fail:

    wmf.JPG

    Seems like the wininet.dll is callin an unsopprted dll advapi32.dll.

    Also it tells me to add linker options in Visual Studio whereI just can't find how to set. So my questions:

    1. How can I set the linker options properly?
    2. Any solution for the wininet.dll problem?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,625
    Where did you get wininet.dll from? It seems to be compiled against windows desktop. I also seem to have one in my C:\Windows\system32\ folder - surely you didn't copy it from there?
     
  3. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I actually did not copy anything. I just exported my app from Unity for "Windows Store" with universal 10. Should I use different settings?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,625
    There is a "wininet.dll" inside your project somewhere, and it's causing issues. I'm asking where you got it from :).
     
  5. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I'm exporting for Windows Store from Unity. In the created folder the is the wininet.dll. So Unity is getting or creating it from somewhere :)
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,625
    Are you sure it's not somewhere in your project? Can you post your editor log after building the Windows Store player from Unity?
     
  7. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    So I got those two errors in the console:

    Reference Rewriter found some errors while running with command --target="Temp\StagingArea\Vuforia.UnityExtensions.dll" --additionalreferences="Temp\StagingArea","Temp\StagingArea\Plugins\x86","Temp\StagingArea\Plugins\x64","Temp\StagingArea\Plugins\x64","Temp\StagingArea\Plugins\x86","C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevelContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Graphics.Printing3D.Printing3DContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Connectivity.WwanContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Store.StoreContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0","C:\Program Files (x86)\Windows


    ---


    Reference rewriter: Error: method `System.Void UnityEngine.RenderTexture::set_generateMips(System.Boolean)` doesn't exist in target framework. It is referenced from Vuforia.UnityExtensions.dll at System.Void Vuforia.DistortionRenderingBehaviour::CreateRenderTexture().
    UnityEngine.Debug:LogError(Object)
    PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:560)
    PostProcessWinRT:process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:127)
    UnityEditor.HostView:OnGUI()

    and the editor.log is attached.
     

    Attached Files:

  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,625
    Well as far as I can tell, that method does not exist. It might cause issues at runtime. That doesn't seem related to your wininet.dll issue. I would try figuring out where that DLL comes from, because it's definitely not produced by Unity.