wooga / Paket.Unity3D

An extension for the Paket dependency manager that enables the integration of NuGet dependencies into Unity3D projects.
http://wooga.github.io/Paket.Unity3D/
The Unlicense
42 stars 9 forks source link

Cleanup Plugins folder when dependencies change #16

Closed mikecann closed 7 years ago

mikecann commented 8 years ago

Hi,

I have been discussing this with @devboy but there is currently a limitation that when a package is installed with a Plugins folder, the contents of that folder is not removed when the package dependency is removed from the .references file.

Im not sure how you could realistically do this short of keeping some sort of history of the last state.

Thoughts?

mikecann commented 8 years ago

A colleague just informed me of this: https://unity3d.com/unity/whats-new/unity-5.0

Plugin Inspector: new native plugin importing system. You're no longer required to place platform specific plugins into special folders like Assets/Plugins/iOS, Assets/Plugins/X64, etc. From now on, you can place them anywhere. You can set platform compatibility settings by clicking on the plugin (files with extensions .dll, .so, etc, and folders with extension *.bundle), this include both managed and native files. Plugins can be set for “Any” platform, “Editor only” or a specific platform. Platform specific settings can also be set, e.g. CPU type. Different platforms may have different settings.

So Paket no longer needs to do the special copy to /Plugins/

Ill submit a PR for this and another issue soon.

Larusso commented 7 years ago

See the new version 0.3.0