Search Unity

Remove package from project

Discussion in 'Editor & General Support' started by yuyenkan999, Jan 10, 2019.

  1. yuyenkan999

    yuyenkan999

    Joined:
    Jul 26, 2018
    Posts:
    4
    I am new to Unity, my Unity version is 2017.3.1f1

    recently my project showing error while compilling

    The package Newtonsoft.Json with version 12.0.1 could not be found in C:\Users\User\.nuget\packages\. Run a NuGet package restore to download the package.

    Since the package is not necessary, I want to remove it from my project, but I have no idea how can I do it, I saw some post talk about package manager under window tab, but it is not showing in my Unity.

    any idea what can I do?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    One thing you might try (make a back up first) is to choose Reset Packages to Default under the Help menu. I was having a similar problem recently, and it worked for me.
     
  3. yuyenkan999

    yuyenkan999

    Joined:
    Jul 26, 2018
    Posts:
    4
    There is no Reset Packages under my help menu?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Ah, it's different type of package! This is referring to a nuget package, not Unity Package Manager. sorry. Please show a screenshot of your project, and the error? That seems like a Visual Studio message.
     
  5. yuyenkan999

    yuyenkan999

    Joined:
    Jul 26, 2018
    Posts:
    4
    ah, I deleted all cache like migrationBackups folder, app.config, and obj folder then rebuild solution then it is solved.