Skip to content

Remove unused references #1994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bartlomiej-dawidow opened this issue Jan 7, 2021 · 1 comment · Fixed by #2279
Closed

Remove unused references #1994

bartlomiej-dawidow opened this issue Jan 7, 2021 · 1 comment · Fixed by #2279
Assignees
Milestone

Comments

@bartlomiej-dawidow
Copy link

Rider 2020.2 added support for removing unused assembly references, a feature that was previously only available in ReSharper:
https://youtrack.jetbrains.com/issue/RIDER-7943

The feature is super helpful when working with larger projects. Unfortunately, the way it works it removes the references from the .csproj files. It would be great if it also worked with asmdefs. At the very list, it could print out the list of detected unused dependencies.

@citizenmatt
Copy link
Member

The feature added in #2279 will work with "Remove Unused References". As the project references are removed, the .asmdef file is updated. There is no special integration into the "Remove Unused References" refactoring - the dialog will list all references that can be removed, even those added by default by Unity. When Unity next gets focus, these default assemblies will be re-added. However, any .asmdef files that are not used will not be added back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants