Example #1
0
        private async void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Version = IncrementVersion.Increment(project);

            FrameworkDependentStatus = InProgress;
            OnPropertyChanged();

            await Dotnet.Publish(frameworkDependentProfile, UpdatePublishProgress);

            FrameworkDependentStatus = Ready;
            SelfContainedStatus      = InProgress;
            OnPropertyChanged();

            PublishText.Text += Environment.NewLine + Environment.NewLine + string.Join("", Enumerable.Repeat("-", 30)) + Environment.NewLine + Environment.NewLine;
            await Dotnet.Publish(selfContainedProfile, UpdatePublishProgress);

            SelfContainedStatus         = Ready;
            ProgressBar.IsIndeterminate = false;
            ProgressBar.Value           = ProgressBar.Maximum;
            OnPropertyChanged();

            DoneMessage.Visibility = Visibility.Visible;
        }
Example #2
0
 private void Window_Closed(object sender, EventArgs e) =>
 Dotnet.CancelPublish();