-
Notifications
You must be signed in to change notification settings - Fork 329
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
Allow changing the path for NuGet.config and packages.config in Settings screen. #195
Comments
Can you lay out your use case for other config file locations? Not opposed to it, just want to understand it. Any change you want to make a PR with this functionality? |
I (probably many other Unity developers too) don't like to keep individual files (especially the ones don't belong to me directly) in the Unity project root (Assets folder). When I import a 3rd party asset, I move its main folder to 3rdParty folder to keep the Unity root clean. I did the same thing for NuGetForUnity's main folder. I moved it to 3rdParty folder. But the config files are created in the root automatically by NuGetForUnity dll. I'd like to be able to move them to another folder. Maybe not to 3rdParty folder because it's not a folder for storing config files but maybe I can move the config files to Assets/NuGet folder. To be able to do that, I would like to set the config path in NuGet settings in Unity's preferences window. |
Another vote for making the path to the config files configurable and here is my reason: other tools don't like this location. For instance Rider doesn't discover the config files here under Assets but works fine if they are one level up, at the same level as the solution. |
Is there any progress for this enhancement? |
Not that I've seen. We're open to any PRs though if you'd like to make the changes. =) |
The main problem in making it configurable is: where to store the configuration with the information where to find the config file (its a 🐔 🥚 problem) 😄 |
Odin Inspector gets around this problem by using the guids in meta files. Basically they have a hard coded guid in their codebase to use as a marker to find a directory. Source isn't available, but I believe they use this class to create a scriptable object Then the path can be looked up by For this issue, |
But we also have a Command Line Interface (CLI) version that needs to run outside of unity in automatic build systems and there is no cheap way to replicate GUIDToAssetPath there as far as I can see. |
Ah, if that's the case could the users that wish to move the config file simply pass in a CLI argument, ie |
What we can do is provide two "hardcoded" locations where the
|
Implemented by #619 |
Please allow changing the path for NuGet.config and packages.config in Settings screen. Hard coded paths in Unity plugins are HORRIBLE! :(
I'll fork the repo and change the path manually for now. I hope you can add this feature so I don't have to update my fork for eternity.
The text was updated successfully, but these errors were encountered: