Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[UWP][NET] System.IO.DirectoryNotFoundException (wrong path)

Discussion in 'Windows' started by nmuchetti, May 17, 2019.

  1. nmuchetti

    nmuchetti

    Joined:
    May 17, 2019
    Posts:
    6
    Hello,
    when i try to compile the Unity UWP version in Visual Studio i get this error:


    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Mariano A\Dektop\PROYECTOS\90sF\SVN\source\Purple Soccer\Builds\xbox 44 20174 3\Golazo\UnityEngine.Networking.dll'.
    1> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    1> at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    1> at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
    1> at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
    1> at Unity.LoadModulesStep.Execute()
    1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
    1> at Unity.Operation.Execute()
    1> at Unity.Program.Main(String[] args)

    If you see in the filepath, says "Dektop" instead of "Desktop", i dont know why, i search for this word in the entire visual studio and unity project but i didnt founded anything.
    How i should fix this problem?

    thanks
     
  2. nmuchetti

    nmuchetti

    Joined:
    May 17, 2019
    Posts:
    6
    i changed the directory and it worked
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,536
    This used to happen with builds that were in long paths. However, I thought we fixed it. Are you on a very old Unity version?
     
  4. nmuchetti

    nmuchetti

    Joined:
    May 17, 2019
    Posts:
    6
    yes, its fixed, using a shortest path.

    im using unity 2017.4.27