I decided to try out the new unity dots system, or, the new entities package (as well as the hybrid renderer), but I can't find the package in the package manager with preview packages enabled. After looking it up, I could not find any resources, other than one that told me that they moved some of the preview packages out of the package manager, and somewhere else. Does anyone have any idea where it could be?
This is what it looks like on my screen by the way:
From Entity Component System - DOTS Project Setup
Starting with Unity 2020.1, the DOTS packages are not listed in the package manager, even when preview packages are enabled. There are two alternative options to install those packages:
You can use "Add package from git URL..." under the + menu at the top left of the package manager to add packages either by name (such as com.unity.entities), or by git URL (but this option isn't available for DOTS packages). Note that it might take a few moments before the package starts installing.
Alternatively, you can add DOTS packages by directly editing the Packages\manifest.json file in your project. This file requires not only the package name but also a version which can be found by looking at the documentation of each package (such as "com.unity.entities" : "x.x.x-preview.x").
For example currently it would be com.unity.entities" : "0.17.0-preview.41"
And
Follow the link for more information about installing hidden packages.
Maybe also interesting for you:
The recommended set of core packages to be added to a DOTS project is:
com.unity.entities
com.unity.rendering.hybrid
com.unity.dots.editor
Related
Following the instructions here in the "Unity Package Manager" section, I'm unable to find the Barracuda package in the Unity Registry. Could someone shed some light on how Barracuda package is meant to be installed? Thanks!
I do have Preview Packages enabled, as you can see some preview packages listed in the Unity Registry in the screenshot below.
According to this forum post, Unity versions since 2020 not only hide preview packages by default but for some, they are completely unsearchable and must be manually fetched. For Barracuda:
Open Package Manager
Click the plus sign in top left corner > Add package from Git URL...
Input com.unity.barracuda into the text field
In unity's package manager the proGrids module is not visible
I installed proBuilder but the proGrid module is not showing up
Unity version-- 2021.1.1f1
If you want any more info please ask
THANKS!!
Apparently even though it is (currently?) not appearing in the packages you can still install it via (Source)
Update: in the newest versions the option Add package by name is removed and instead you enter the exact same thing into Add package from git URL
ProGrids is a preview package so you need to check Enable Preview Packages in the Package Manager Project Settings
ProGrids on unity 2021.1.22f1 is still experimental. I don't know if this is safe to use or not. ProGrids Unity 2021.1.22f1
After updating an MVVMCross project from 3.1.1 to 3.2.1, I found that I was getting errors resolving the references to MvxStorePage (Cirrious.MvvmCross.WindowsStore.Views).
I've had a look inside the MVVMCross project, and it looks like WindowsStore should be inside Cirrious.MvvmCross.WindowsStore.dll. However, I can't seem to determine which NuGet package this is. I've tried looking in the NuGet Package Explorer, but can't seem to determine where it is.
I'm currently referencing:
MMVMCross
MMVMCross - MVVMCrossCore
MMVMCross - MVVMCrossCore - Portable Support
MVVMCross - Hot Tuna Libraries
MVVMCross - Hot Tuna Starter Pack
+ A bunch of plug-ins
So, my question is twofold: which package is this located in and, as a wider question, how can I determine myself which package it's in?
The packages are defined in nuspec files in https://github.com/MvvmCross/MvvmCross/tree/3.2/nuspec
You can see which ones reference Cirrious.MvvmCross.WindowsStore.dll using search - e.g. GitHub search https://github.com/MvvmCross/MvvmCross/search?utf8=%E2%9C%93&q=Cirrious.MvvmCross.WindowsStore.dll&type=Code or download the files and use grep or Find in Files locally
Is there a way to add a package to a project when this package is already added to another project? I would like to avoid depending on the net because sometimes we are require to work in a non connected scenario.
I know I can simple add a reference and browse, but I suspect I will loose the ability to update automatically the reference in the future.
One way to be able to work with NuGet in a non-connected state, is to supply an alternative package source, either locally on your own computer, or on a machine on your internal network. You can add new package sources in Visual Studio through Tools > Options > Package Manager > Package Sources.
We do this ourselves for two reasons:
With a local package source you can work without an internet connection.
With a local package source and the official NuGet package source disabled, we have better control of which packages are available. This way will we for instance avoid undesired updates in our development group until we've approved them.
My aim is to have package restore working on a build server so that I don't have to check in binaries. At the moment, I'm simply trying to get it to work on my own machine using Visual Studio.
Here's what I've done so far:
Followed the instructions here http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages, including both setting the Tools-Options flag and the environment variable (belt and braces)
Installed the NuGetEnablePackageRestore package as suggested here NuGet package restore consent without NuGet
Checked everything in (the .nuget solution folder and its contents), but not the binaries I want to reference, because that's the whole point of the exercise
Here's what I'm doing:
Check out solution
Verify that nunit.framework.dll and moq.dll are not present in the checked out solution
Build the solution
Visual Studio complains that Moq is missing. I search for the dlls in the solution directory and find that:
nunit.framework.dll is present in the appropriate bin folders
Moq.dll is nowhere to be found
But there's more. This is truly mysterious, but if I do a fresh checkout, disconnect from the internet and build, I get precisely the same results - nunit.framework.dll is there, but moq.dll is not. The build process has conjured nunit.framework.dll literally from nowhere.
So it's something of an understatement to say that I am completely baffled. Can anyone suggest answers to the following questions:
Why is package restore not downloading Moq?
Where on earth is the build process getting nunit.framework.dll, if not the internet?
In vs, Options, Package Manager... there's a section "Package Cache", if you click on the "Browse" button it will take you to the location of the nuget cache in your machine.
Okay, I noticed in the documentation that enabling package restore was supposed to modify project files in order to add a new target. My project files did not have this change. Right-clicking the solution title in VS and selecting 'Manage NuGet packages...' then added the required changes and everything built as it should.
I checked, and package restore still appears to work when I have no internet access, so I'm still mystified about that. Does NuGet maintain some kind of cache of binaries outside the solution?