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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

The type Lazy<T> exists in both System.Threading...

Discussion in 'Editor & General Support' started by g3tinmybelly, Apr 23, 2019.

  1. g3tinmybelly

    g3tinmybelly

    Joined:
    Jul 5, 2014
    Posts:
    6
    Hey guys,

    When trying to run my game I run into this issue where there are 2 errors:

    Library\PackageCache\com.unity.render-pipelines.core@5.13.0\Runtime\Volume\VolumeManager.cs(13,25): error CS0433: The type 'Lazy<T>' exists in both 'System.Threading, Version=1.0.2856.102, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

    Library\PackageCache\com.unity.textmeshpro@2.0.0\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'System.Threading, Version=1.0.2856.102, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    And I can't find anyway of removing them unless I just remove them from the package manager.

    Any ideas would be useful!

    Thanks,
    Ryan
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    I'm not 100% sure this will work.. but try going to the lines where "Lazy<T>" is used in VolumeManager.cs(13,25) and TMP_PackageUtilities.cs(310,17) and specify which namespace you want to use "Lazy<T>" from. (Example: "System.Threading.Lazy<T>"). You will have to figure out which namespace they intended to use, it's probably in their "using" statements at the top of the script.
     
  3. TonyGreen

    TonyGreen

    Joined:
    Jun 16, 2015
    Posts:
    2
    Same problem
     
  4. Feedos

    Feedos

    Joined:
    Sep 6, 2018
    Posts:
    2
    Library\PackageCache\com.unity.textmeshpro@2.0.0\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'System.Threading, Version=1.0.2856.102, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    I get this error when importing bolt into unity, it must be an incompatibility issue with unity 2019.1

    This should fix it
    https://support.ludiq.io/communitie...eading-does-not-work-with-net-46#comment-8925

    https://ludiq.io/bolt/known-issues#threading
     
    Last edited: Apr 30, 2019