private void SetMSBuild_Click(object sender, RoutedEventArgs e) { MSBuildLocator.BrowseForMSBuildExe(); if (mainContent.Content is BuildParametersScreen buildParametersScreen) { buildParametersScreen.UpdateMSBuildLocations(); } }
public static IEnumerable <string> GetRecentMSBuildLocations() { if (cachedRecentMSBuildLocations == null) { cachedRecentMSBuildLocations = GetRecentItems(recentMSBuildLocationsFilePath) .Where(File.Exists) .Union(MSBuildLocator.GetMSBuildLocations(), StringComparer.OrdinalIgnoreCase) .Distinct(StringComparer.OrdinalIgnoreCase) .ToArray(); } return(cachedRecentMSBuildLocations); }