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

Missing TextMeshPro .cs file when building a UWP vs solution with 2018.2.0f

Discussion in 'Windows' started by Roest_, Jul 12, 2018.

  1. Roest_

    Roest_

    Joined:
    Nov 3, 2014
    Posts:
    25
    So I just create a new project. Set scripting backend to .net, target device to hololens, and activate Unit C# projects in the Debugging settings.

    Now when I open to solution in vs2017 I get a lot of errors about missing files

    Code (CSharp):
    1. [Failure] Could not find file 'D:\devel\workspace\Hololens\tmptest\Packages\com.unity.textmeshpro\Scripts\Runtime\TMPro_FontUtilities.cs'.
    2. [Failure] Could not find file 'D:\devel\workspace\Hololens\tmptest\Packages\com.unity.textmeshpro\Scripts\Runtime\TMPro_Private.cs'.
    3. [Failure] Could not find file 'D:\devel\workspace\Hololens\tmptest\Packages\com.unity.textmeshpro\Scripts\Runtime\TMP_CoroutineTween.cs'.
    4. [Failure] Could not find file 'D:\devel\workspace\Hololens\tmptest\Packages\com.unity.textmeshpro\Scripts\Runtime\TMP_ListPool.cs'.
    5. [Failure] Could not find file 'D:\devel\workspace\Hololens\tmptest\Packages\com.unity.textmeshpro\Scripts\Runtime\TMP_TextUtilities.cs'.
    6.  
    7. and many more
    8.  
    That's of couse correct as the Packages folder only contains a manifest.json file. I can work around this problem by copying \AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.textmeshpro@1.2.4 to the Packages folder and rename it deleting the @1.2.4

    Nevertheless this is kind of annoying. I think an empty project should create a correct solution that compiles out of the box. Is this a known bug or some configuration error on my side?
     
    al12383, jake_roder and roumenf like this.
  2. ClaytonOne

    ClaytonOne

    Joined:
    Sep 5, 2015
    Posts:
    89
    Confirmed in my project as well after upgrading to 2018.2.

    Thanks for the work around, seems to do the job.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Can we get a bug report on this?
     
  4. tvald

    tvald

    Joined:
    Jul 13, 2018
    Posts:
    10
    Seeing this as well with 2018.2.0f. Thanks for the workaround!
     
  5. RobJellinghaus

    RobJellinghaus

    Joined:
    Jul 10, 2017
    Posts:
    17
    Also seeing this, also verified workaround works. Bug report created: https://fogbugz.unity3d.com/default.asp?1060824_lpa048iqlm5qobv2

    It seems that the Unity.TextMeshPro generated solution contains entries of the form:

    Code (CSharp):
    1.     <Compile Include="$(UnityProjectDir)Packages\com.unity.textmeshpro\Scripts\Runtime\PackageResourceImporterWindow.cs">
    2.       <Link>s\com.unity.textmeshpro\Scripts\Runtime\PackageResourceImporterWindow.cs</Link>
    3.     </Compile>
    4.  
    However, the s\com.unity.textmeshpro\Scripts\Runtime directory is also empty.
     
  6. Deleted User

    Deleted User

    Guest

    A temporary solution is to go to Windows -> PackageManager and remove TextMesh Pro
     
  7. CryT4x

    CryT4x

    Joined:
    Sep 13, 2018
    Posts:
    1
    @Roest_ TY! so much <3 <3 safed my project. :D
     
  8. Limba

    Limba

    Joined:
    Mar 4, 2014
    Posts:
    10
    TY! for workaround.
    Now using 2018.3.0b5 but upgraded project from 2018.2.
     
  9. Tom-Mensink

    Tom-Mensink

    Joined:
    Jul 27, 2017
    Posts:
    17
    Thank you very much @Roest_ for this workaround.