Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion msbuild/Xamarin.MacDev.Tasks/Tasks/ArchiveTaskBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected string MSYMDir {

protected string XcodeArchivesDir {
get {
var home = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
var home = Environment.GetFolderPath (Environment.SpecialFolder.UserProfile);

return Path.Combine (home, "Library", "Developer", "Xcode", "Archives");
}
Expand Down
2 changes: 1 addition & 1 deletion tests/monotouch-test/Foundation/FileManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void GetSkipBackupAttribute ()
{
Assert.False (NSFileManager.GetSkipBackupAttribute (NSBundle.MainBundle.ExecutableUrl.ToString ()), "MainBundle");

string filename = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), $"DoNotBackupMe-NSFileManager-{Process.GetCurrentProcess ().Id}");
string filename = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), $"DoNotBackupMe-NSFileManager-{Process.GetCurrentProcess ().Id}");
try {
File.WriteAllText (filename, "not worth a bit");

Expand Down
2 changes: 1 addition & 1 deletion tests/monotouch-test/Foundation/UrlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void IsExcludedFromBackupKey ()
Assert.That (value, Is.TypeOf (typeof (NSNumber)), "NSNumber");
Assert.That ((int) (value as NSNumber), Is.EqualTo (0), "0");

string filename = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), $"DoNotBackupMe-NSUrl-{Process.GetCurrentProcess ().Id}");
string filename = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), $"DoNotBackupMe-NSUrl-{Process.GetCurrentProcess ().Id}");
try {
File.WriteAllText (filename, "not worth a bit");
using (NSUrl url = NSUrl.FromFilename (filename)) {
Expand Down
2 changes: 1 addition & 1 deletion tools/common/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static Driver ()
static int GetDefaultVerbosity ()
{
var v = 0;
var fn = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), $".{NAME}-verbosity");
var fn = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), $".{NAME}-verbosity");
if (File.Exists (fn)) {
v = (int) new FileInfo (fn).Length;
if (v == 0)
Expand Down
2 changes: 1 addition & 1 deletion tools/devops/mac-tests-provisioning.csx.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (!string.IsNullOrEmpty ("@INCLUDE_XAMARIN_LEGACY@")) {

BrewPackages ("p7zip");

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 => {
Expand Down