Skip to content

Commit

Permalink
Added a public SdkDir property to MonoMacSdk (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast authored Apr 24, 2018
1 parent 1a3eeb0 commit 29e500b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Xamarin.MacDev/MonoMacSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public sealed class MonoMacSdk : IMonoMacSdk
{
static DateTime lastExeWrite = DateTime.MinValue;

string sdkDir;
public string SdkDir {
get; private set;
}

public string LegacyFrameworkAssembly {
get; private set;
Expand All @@ -46,7 +48,7 @@ public MonoMacSdk (string defaultLocation, string legacyFrameworkAssembly, strin
{
LegacyFrameworkAssembly = legacyFrameworkAssembly;
LegacyAppLauncherPath = legacyAppLauncherPath;
sdkDir = defaultLocation;
SdkDir = defaultLocation;
Init ();
}

Expand All @@ -70,7 +72,7 @@ void Init ()

MacOSXSdkVersion ReadVersion ()
{
var versionFile = Path.Combine (sdkDir, "Version");
var versionFile = Path.Combine (SdkDir, "Version");
if (File.Exists (versionFile)) {
try {
return MacOSXSdkVersion.Parse (File.ReadAllText (versionFile).Trim ());
Expand Down

0 comments on commit 29e500b

Please sign in to comment.