Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Allow packages to be installed as editor-only #12

Description

@kibiz0r

I need to be able to specify that some packages are only relevant to the editor assembly.

For example, I want to use Moq for unit testing, and I'd like to use Paket to keep the dependency fresh, but the DLL needs to be under an Editor/ path because it's not even a valid Unity-friendly assembly in a non-editor context -- not that I want Moq.dll in my app, anyway.

I can simulate the behavior by wrapping the package myself and nesting the DLL under Editor/, but that only works for this case because you would never want to have Moq outside of an Editor/ path. And it kind of defeats the purpose of using a package manager to track updates to external code.

For dependencies like, perhaps, an HTTP client, that you may want to use in your app or just in the editor, I need to able to tell Paket.Unity3d which way to handle it.

There is also the curious case of tools like all of the Prime31 stuff, which absolutely demand that they be under Assets/Editor/<tool-name-here>, no subdirectories allowed.

This may be related to #10, as Paket 2.x adds groups, which may be a useful path to implementing this feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions