Skip to content
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

Add PackagesPath to the ScanAndProcessKnownFolders method in UnityProjectInfo.cs #139

Open
rubengonzalezlodeiro opened this issue Apr 29, 2020 · 0 comments

Comments

@rubengonzalezlodeiro
Copy link

rubengonzalezlodeiro commented Apr 29, 2020

When you are developing packages is quite common to have them directly in the Packages folder, but this folder is not scanned, and thus csproj files are not processed correctly. When the package is published and downloaded using UPM it works fine.
The ScanAndProcessKnownFolders (UnityProjectInfo.cs:461) should contain an additional call to ScanAndProcessFiles with PackagesPath.
This is how the method should look.

private void ScanAndProcessKnownFolders( Dictionary<string, Action<string, Guid>> extensionCallbacks) {
  ScanAndProcessFiles(Utilities.AssetPath, extensionCallbacks);
  ScanAndProcessFiles(Utilities.PackagesPath, extensionCallbacks);
  ScanAndProcessFiles(Utilities.PackageLibraryCachePath, extensionCallbacks);
}
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

No branches or pull requests

1 participant