Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UWP Build Error

Discussion in 'Windows' started by MattWhiting, May 31, 2018.

  1. MattWhiting

    MattWhiting

    Joined:
    Jan 11, 2016
    Posts:
    79
    It looks like the error within PostProcessWinRT.CopyTestCertificate ()

    Any insight as to what's going on here?

    Code (CSharp):
    1.  
    2. ArgumentException: An empty file name is not valid.
    3. Parameter name: sourceFileName
    4. System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:98)
    5. System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:86)
    6. PostProcessWinRT.CopyTestCertificate () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1179)
    7. PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:177)
    8. UnityEditor.WSA.BuildPostprocessor.DoPostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:117)
    9. UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:124)
    10. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    11.  
     
    Last edited: May 31, 2018
  2. MattWhiting

    MattWhiting

    Joined:
    Jan 11, 2016
    Posts:
    79
    nevermind... I had not created the certificate... looks like that isn't automatic.
    PlayerSettings > UWP settings > Publishing Settings > Certificate > Create...
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    That should be automatic. Did you copy your project on another machine or is this a fresh new project?
     
  4. MattWhiting

    MattWhiting

    Joined:
    Jan 11, 2016
    Posts:
    79
    The project was in source control. UWP is a new platform for this project which currently supports other targets.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Are you able to consistently reproduce this? If yes, do you mind submitting a bug report with repro steps?