

Instead of downloading everything manually you can create a nfig and a packages.nuget file and place them in you project's root directory. Use native Nuget (for packages which targets only one framework) dll.meta files that specify which version Unity uses.

gitignore will exclude everything from the packages, but will keep the. dll.meta files in the same directory as the. Open the file in the inspector and disable it for platforms, or conditionally for build constraints. In the Unity editor, find the dll files from the package This can go in the same folder as your dotnet solution, in which case you can restore the packages with dotnet restore or nuget restore in the solution folder. Specify where to put the packages either on the command line or in a nfig file so that they will be included as assets in unity. You can use the native dotnet restore or nuget restore commands to populate an asset folder with the nuget packages.
