Ejemplo n.º 1
0
        private void SetMSBuild_Click(object sender, RoutedEventArgs e)
        {
            MSBuildLocator.BrowseForMSBuildExe();

            if (mainContent.Content is BuildParametersScreen buildParametersScreen)
            {
                buildParametersScreen.UpdateMSBuildLocations();
            }
        }
Ejemplo n.º 2
0
        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);
        }