1
0
Форкнуть 0

Fix SpecialFolder.Personal usages

SpecialFolder Personal is the same value as MyDocuments, both of which will be changed on Unix from `~` to `~/Documents` in .NET 8. See https://github.com/dotnet/runtime/pull/68610.

Fixing the usage of SpecialFolder.Personal here to be UserProfile, since that's really what it wants.
This commit is contained in:
Eric Erhardt 2022-09-13 13:14:54 -05:00
Родитель 5ff4d1bdbc
Коммит 49d0f9afac
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -36,7 +36,7 @@ item.XcodeSelect ();
LogInstalledXcodes();
var appleSdkOverride = Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.Personal), "Library", "Preferences", "Xamarin", "Settings.plist");
var appleSdkOverride = Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), "Library", "Preferences", "Xamarin", "Settings.plist");
Item("Override Apple SDK Settings")
.Condition(item => !File.Exists(appleSdkOverride) || GetSettingValue(appleSdkOverride, "AppleSdkRoot") != GetSelectedXcodePath())
.Action (item => {