Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Nuget Packages

Discussion in 'Experimental Scripting Previews' started by chixcancode, Oct 26, 2021.

  1. chixcancode

    chixcancode

    Joined:
    Jun 26, 2018
    Posts:
    1
    What is the right way now to include Nuget packages into Unity projects?
     
    marcospgp likes this.
  2. VolodymyrBS

    VolodymyrBS

    Joined:
    May 15, 2019
    Posts:
    150
    There are at least 2 options:
    1. Download nuget package from nuget.org. unpack it as zip and copy dll from lib/netstandard2.0 or lib/netstandard2.1(for unity 2021.2) to you project. same should be done for each dependency of package.
    2. Use UnityNuGet scoped registry which have some nuget packages converted to upm. https://github.com/xoofx/UnityNuGet
     
    NeneChico likes this.
  3. mrwellman_work

    mrwellman_work

    Joined:
    Jan 11, 2021
    Posts:
    4
    starikcetin and punki_na like this.