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?
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"
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”?
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
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 :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 :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 :0
at Prime31Editor.WinPhonePostProcessBuild.onPostProcessBuildPlayer (BuildTarget target, System.String pathToBuiltProject) [0x00000] in :0
UnityEngine.Debug:LogError(Object)
Prime31Editor.WinPhonePostProcessBuild:onPostProcessBuildPlayer(BuildTarget, String)
UnityEditor.HostView:OnGUI()
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
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.