-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packages install path can again be edited from preferences window (#619)
* Packages install path can again be edited from preferences window * Improved handling of invalid folder selection * Made a Packages path fixed * Fixed moving packages out of Assets * Fixed Asset Refreshing when moving packages outside of Assets * Improved asset refresh after moving to Packages folder * Renamed Placement to PackageInstallLocation and core reformat * run autoformatter * rename configuration parameter from 'Platcement' to 'packageInstallLocation' --------- Co-authored-by: JoC0de <[email protected]>
- Loading branch information
Showing
11 changed files
with
354 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/NuGetForUnity/Editor/Configuration/PackageInstallLocation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace NugetForUnity.Configuration | ||
{ | ||
/// <summary> | ||
/// Tells the system how to determine where the packages are to be installed and configurations are to be stored. | ||
/// </summary> | ||
internal enum PackageInstallLocation | ||
{ | ||
/// <summary> | ||
/// This option will place Nuget.config into the Assets folder and will allow the user to | ||
/// specify custom location within Assets folder for packages.config and package installation | ||
/// folder. | ||
/// </summary> | ||
CustomWithinAssets, | ||
|
||
/// <summary> | ||
/// This options will place the Nuget.config and packages.config under Packages/nuget-packages | ||
/// and will install the packages under Packages/nuget-packages/InstalledPackages. | ||
/// </summary> | ||
/// . | ||
InPackagesFolder, | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/NuGetForUnity/Editor/Configuration/PackageInstallLocation.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.