Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Visual Studio Windows Phone Package Problem

Discussion in 'Code Editors & IDEs' started by wyznawca, Jul 11, 2015.

  1. wyznawca

    wyznawca

    Joined:
    Dec 27, 2012
    Posts:
    27
    Hey, i try to add some ads to my game on windows phone, and i have this problem when i try to open Manifest



    I updated visual (update 4 for now), installed what i could, downloaded Microsoft Advertising SDK and still nothing.
    Can anyone help me with it?
     
  2. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
  3. wyznawca

    wyznawca

    Joined:
    Dec 27, 2012
    Posts:
    27
    Well, i did but in visual studio express :D I have no idea what differnce it is, still thanks for answer, i will probably use monodevelop next time

    but now i have problem with Microsoft_Ad_Plugin.dll

    "visual studio a reference to a higher version or incompatible assembly" error shows up when i try to add reference,
    everyone says that "Unlock" in properties of dll helped him, but i still get this error,
     
  4. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
    When you create a new script on Visual. You have to be sure, that your project settings framework is targeted to "Unity 3.5 (web or net subset)". NOT 4.0, 4.1 etc.

    You are NOT going to compile anything with Visual directly! When you go back to Unity screen, the Unity will take care of compiling.

    When you select from Unity WP8 as target. The Unity will make everything required things for you automatically.

    You can not use any .dll files, which are not Unity (framework 3.5) compatible. You have to find an Ads plugin, what doesn't need framework, what is not supported by Unity.

    So. Remember! You are not going to create anything directly with Visual. You are using it as text editor + resources + reference dlls "collector" only.
     
  5. wyznawca

    wyznawca

    Joined:
    Dec 27, 2012
    Posts:
    27
  6. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
    And you did everything, what is wrote under UNITY subject on that same web page?

    Prefabs, defines, etc...

    btw. You didn't find a suitable Ads package from Unity's store?

    If you are using packages from somewhere else, you will hit your head to wall
    with this kind of problems time to time.

    Those packages aren't tested by unity. Code wroted as neard to neard usage etc...

    Edit:
    Oh. And WP8, for example, doesn't accept all "functions/thread systems/whatever" what
    are accepted by stand alone for pc/mac/linux. Same thing with ios.

    So, find a package, what is proofed to work with your target build.
     
    Last edited: Jul 15, 2015
  7. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
    What I read from Unity section on that page:

    Just install Unitypackage. Move the prefab to your scene.

    NOTHING ELSE.

    I f you don't get it to work and if I have a time, I will test this package at friday or saturday...
     
    Last edited: Jul 15, 2015
  8. wyznawca

    wyznawca

    Joined:
    Dec 27, 2012
    Posts:
    27
    Okay, nothing works, i tried several possibilities. So i just give up with this plugin and will try to add ads without it.
    The problem is that i have not Windows Phone Device. Will i see ads in Visual Studio emulator? Because i am trying to add ads and i can see only game, not ads.


    Edit. OK OK :D i finally did something, but my ad shows as



    Is it because its in emulator?
     
  9. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
    I think so. I'm not familiar with wp8 emulator with unity. I always upload my project to real device from unity.
     
  10. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    This is not exactly true. Unity precompiles your game itself into assemblies and generates a WP8 / 8.1 / Universal (depending on target) project which then opens in Visual Studio. From Visual Studio you still compile the final application and can run the emulator just fine. You actually don't need MonoDevelop for anything.

    My first suggestion is to scrap Visual Studio Express. Download and install Visual Studio Community Edition... it's Visual Studio Pro and it's free and supports plugins. Then, install Visual Studio Tools for Unity.

    https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
    That's the link to 2013, and 2015 will be released soon.

    As to the Ad Network, I don't have any experience with it, but my guess would be that it always shows the placeholder when running in the emulator. They probably wouldn't want it to show real ads as it would be giving unnecessary impressions.
     
  11. JOKaija

    JOKaija

    Joined:
    Feb 8, 2015
    Posts:
    161
    Thank you about clarifying visual studio behaviour with unity.