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. Dismiss Notice

Error in csproj or WMAppManifestfile

Discussion in 'Windows' started by Nishank, Sep 10, 2013.

  1. Nishank

    Nishank

    Joined:
    May 2, 2013
    Posts:
    6
    Hi,

    I am importing my Unity game from Android to Windows 8 and i was successful in building the xap file but now when i build my project through Unity it is showing me this error "Error in csproj or WMAppManifestfile" but the still the deployment is completed.But the file generated are incomplete and are not ready to be submit in the app store.

    Can anyone tell me what is this error and how can i solve it.May be i am missing any point?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Could you elaborate what exactly gives you the error? Is it unity editor or Visual studio?
     
  3. Nishank

    Nishank

    Joined:
    May 2, 2013
    Posts:
    6
    Actually it is the unity editor which is giving me the error.I have just switched my platform .Made some changes as per required now i am am running it on a Windows Phone it deploys on the device but with this error"Error in csproj or WMAppManifestfile"
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Does the application launch? The error itself is in developer console on the phone? Did you check unity log on the phone?
     
  5. Entity3Limited

    Entity3Limited

    Joined:
    Jan 10, 2012
    Posts:
    21
    Hi, I am experiencing this exact same issue. Was a fix found?
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Hi,

    Nishank never seemed to reply to my last question. Could you describe the issue you are facing?
     
  7. Entity3Limited

    Entity3Limited

    Joined:
    Jan 10, 2012
    Posts:
    21
    Hi. The error is a Unity Messasge when trying to Build for Windows Phone. It pops up right at the end just before it would complete the build.
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Could you copy paste the full message here? Does it happen when you build any project, or only one specific one? Also, does it happen when you only build it, or when you press "build and run"?
     
  9. Entity3Limited

    Entity3Limited

    Joined:
    Jan 10, 2012
    Posts:
    21
    I do not have a windows phone to use build and run. So I just use Build. I will try with a blank project and see what happens. I will post the full message shortly
     
  10. Entity3Limited

    Entity3Limited

    Joined:
    Jan 10, 2012
    Posts:
    21
    this is the error below that i get

    System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\Bloggy\Desktop\Unity Projects\Game\windev2\Game\Properties\WMAppManifest.xml".
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001be] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/FileStream.cs:292
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.File.OpenRead (System.String path) [0x00000] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/File.cs:363
    at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00077] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/StreamReader.cs:167
    at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string,System.Text.Encoding)
    at System.IO.File.ReadAllText (System.String path, System.Text.Encoding encoding) [0x00000] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/File.cs:587
    at System.IO.File.ReadAllText (System.String path) [0x00000] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/File.cs:582
    at Prime31Editor.WMAppManifestEditor..ctor (System.String pathToProjectDirectory) [0x00000] in <filename unknown>:0
    at Prime31Editor.WinPhonePostProcessBuild.onPostProcessBuildPlayer (BuildTarget target, System.String pathToBuiltProject) [0x00000] in <filename unknown>:0
    UnityEngine.Debug:LogError(Object)
    Prime31Editor.WinPhonePostProcessBuild:eek:nPostProcessBuildPlayer(BuildTarget, String)
    UnityEditor.HostView:OnGUI()
     
  11. Entity3Limited

    Entity3Limited

    Joined:
    Jan 10, 2012
    Posts:
    21
    Hi, Just after I posted this I found what the error is. So for anyone how experiences this error in the future here is the solution.

    What i did when i pasted the above error was change the following line in my post

    System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\Bloggy\Desktop\Unity Projects\Game\windev2\Game\Properties\WMAppManifes t.xml".

    I changed the name of my app to 'Game' so people could not steal my game name. When doing this i found the error.
    My 'Product Name' in Unity under the 'Player Settings' contained a : symbol. This symbol was the cause.

    Tautvydas Zilys, thanks for your reply. Hope this helps if anyone has the issue in the future
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Hi,

    I'm very glad you solved it. Would you mind reporting a bug with a most simplified repro project so we could actually fix it (that is, to warn with a useful error message rather than throwing an exception)? Even an empty project with project name changed to illustrate the issue would do.