[PR #6441] [MERGED] wpf: add a .NET Core WPF Test project for the WPF Control #26683

Open
opened 2026-01-31 09:17:32 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/6441
Author: @DHowett
Created: 6/9/2020
Status: ✅ Merged
Merged: 6/9/2020
Merged by: @DHowett

Base: master ← Head: dev/duhowett/wpf_test_harness


📝 Commits (4)

  • 5bbd9fb Add a .NET Core WPF Test project for the WPF Control
  • eb52a26 Merge remote-tracking branch 'origin/master' into dev/duhowett/wpf_test_harness
  • f2a4bb7 Fix post merge
  • bc60e6a copyright, exclude WpfTest from all builds

📊 Changes

9 files changed (+430 additions, -1 deletions)

View changed files

📝 OpenConsole.sln (+241 -0)
📝 src/cascadia/PublicTerminalCore/HwndTerminal.cpp (+5 -1)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/App.xaml (+9 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/App.xaml.cs (+22 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/AssemblyInfo.cs (+15 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/MainWindow.xaml (+13 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/MainWindow.xaml.cs (+96 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/Properties/launchSettings.json (+8 -0)
➕ src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/WpfTerminalTestNetCore.csproj (+21 -0)

📄 Description

⚠️ * * * THIS IS A TEST APPLICATION * * * THIS IS NOT SHIPPING CODE * * *

This commit introduces a new project that lets you F5 a working instance
of the Wpf Terminal Control.

To make the experience as seamless as possible, I've introduced another
solution platform called "DotNet_x64Test". It is set to build the WPF
projects for "Any CPU" and every project that PublicTerminalCore
requires (including itself) for "x64". This is the only way to ensure
that when you press F5, all of the native and managed dependencies get
updated.

It's all quite cool when it works.

To use:
Make sure your build is set to Release/Debug DotNet_x64Test. Set WpfTerminalTestNetCore as your startup project. Press F5!

image

PR Checklist

  • Closes nothing
  • CLA
  • Tests added/passed/it sort of is a test itself
  • Requires documentation to be updated
  • I work here.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/6441 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 6/9/2020 **Status:** ✅ Merged **Merged:** 6/9/2020 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `master` ← **Head:** `dev/duhowett/wpf_test_harness` --- ### 📝 Commits (4) - [`5bbd9fb`](https://github.com/microsoft/terminal/commit/5bbd9fb6d2651336061905952be043d59475cd90) Add a .NET Core WPF Test project for the WPF Control - [`eb52a26`](https://github.com/microsoft/terminal/commit/eb52a26118442cd3813fc46b0aeae824d0a0098e) Merge remote-tracking branch 'origin/master' into dev/duhowett/wpf_test_harness - [`f2a4bb7`](https://github.com/microsoft/terminal/commit/f2a4bb7de326d79e791fcd3cddd6c0f789e1d2b1) Fix post merge - [`bc60e6a`](https://github.com/microsoft/terminal/commit/bc60e6a57fb48ad6aa91ae64d478d324f5dc80f4) copyright, exclude WpfTest from all builds ### 📊 Changes **9 files changed** (+430 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `OpenConsole.sln` (+241 -0) 📝 `src/cascadia/PublicTerminalCore/HwndTerminal.cpp` (+5 -1) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/App.xaml` (+9 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/App.xaml.cs` (+22 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/AssemblyInfo.cs` (+15 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/MainWindow.xaml` (+13 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/MainWindow.xaml.cs` (+96 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/Properties/launchSettings.json` (+8 -0) ➕ `src/cascadia/WpfTerminalTestNetCore/WpfTerminalTestNetCore/WpfTerminalTestNetCore.csproj` (+21 -0) </details> ### 📄 Description > ⚠️ `* * * THIS IS A TEST APPLICATION * * * THIS IS NOT SHIPPING CODE * * *` This commit introduces a new project that lets you F5 a working instance of the Wpf Terminal Control. To make the experience as seamless as possible, I've introduced another solution platform called "DotNet_x64Test". It is set to build the WPF projects for "Any CPU" and every project that PublicTerminalCore requires (including itself) for "x64". This is the only way to ensure that when you press F5, all of the native and managed dependencies get updated. It's all quite cool when it works. To use: Make sure your build is set to `Release/Debug` `DotNet_x64Test`. Set WpfTerminalTestNetCore as your startup project. Press <kbd>F5</kbd>! ![image](https://user-images.githubusercontent.com/189190/84191753-d3bffd80-aa4d-11ea-963b-f7bf01279f98.png) ## PR Checklist * [ ] Closes nothing * [x] CLA * [x] Tests added/passed/it sort of is a test itself * [ ] Requires documentation to be updated * [x] I work here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:17:32 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26683