You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to install packages to a specific assembly. To be able to install a package only for use in the Editor or for Testing purposes. Are there any plans to support this?
The text was updated successfully, but these errors were encountered:
Disable automatic referencing of assemblies
To disable the automatic referencing of assemblies of a NuGet package you can set the autoReferenced attribute of a package inside the packages.config to false. Currently this setting is not available from UI.
Hi @CDTR-MattConroy
Unity allows you to specify witch packages (dll's) are imported to other assemblies in two ways:
You e.g. install Serilog and mark it as not autoReferenced so it is not imported in any other assembly (auto generated or created from .asmdef). To include it in a assembly it than need to be explicitly listed in the .asmdef.
You enable "Override References" in the .asmdef and list all packages (dll's) you need to be imported (referenced).
Doing this from NuGetForUnity is probably not so easy / not the most strait forward way for the user.
Description
It would be very useful to install packages to a specific assembly. To be able to install a package only for use in the Editor or for Testing purposes. Are there any plans to support this?
The text was updated successfully, but these errors were encountered: