Commit 25dd3ab
authored
Enable xunit testing in VS with the dispatcher (#10023)
* Remove NetCoreReference
This removes the `NetCoreReference` infrastructure and replaces it with `DefaultReferenceExclusion` to remove the one problematic implicit reference to WindowsBase.
Manually picking references was blocking using System.Private.Windows.Core from the WinForms repo. Not having this also greatly simplifies the projects.
This also tweaks the solution to add folders docs and eng items.
Fixes #9168
* Put back test projects in solution
* Enable xunit testing in VS with the dispatcher
This change enables writing and debugging unit tests in the Test Explorer in Visual Studio. I added a new test project for WindowsBase that has a unit test that launches the SplashScreen as an example.
In order to make this happen I had to reference the xunit.stafact package which introduced a number of challenges to overcome. The package has a reference to the desktop sdk and needs to be used in a project that targets `net10.0-windows`, not `net10.0`. To make everything work seamlessly I had to:
- Strip the platform reference
- Apply actual versions from the sdk
- Get rid of AnyCPU and explictly use x86 (everything has a native dependency)
- Enable transitive copying of references for the unit test projects
- Target the 10.0 SDK (would get version confusion otherwise)
- Add an override setting for WinForms which still targets the 9.0 SDK
- Remove other targets that were trying to fixup WindowsBase references from the .NET SDK
-
* Make PresentationBuildTasks always AnyCPU
* Update versions and tweak / simplify some version related stuff
* Attempt to turn on the binlog for the CI
* Update binlog names for both build and test run
* Try 17.12 preview
* Move back off of scout image
* Update versions
* Push back to 9.0
* Uncheck D3DCompiler in ConfigurationManager
* Have ref projects only reference ref projects and move ref and cycle breaker projects to AnyCPU.
* Normalize ARM64 to arm64. Having multiple casings was causing projects to be built multiple times to the same folder.
* Revert RuntimeFrameworkReference.targets changes
* Final cleanup pass
* Tweak SdkReferences.targets
* Respond to feedback1 parent 0212a4e commit 25dd3ab
File tree
116 files changed
+1290
-1554
lines changed- eng
- WpfArcadeSdk
- Sdk
- tools
- common
- packaging
- Microsoft.DotNet.Arcade.Wpf.Sdk
- Microsoft.DotNet.Wpf.GitHub
- Microsoft.Dotnet.Wpf.ProjectTemplates
- Microsoft.NET.Sdk.WindowsDesktop
- src/Microsoft.DotNet.Wpf
- cycle-breakers
- PresentationFramework
- PresentationUI
- ReachFramework
- System.Printing
- redist
- PresentationNative
- VCRuntime
- src
- DirectWriteForwarder
- Extensions
- PresentationFramework-SystemCore
- PresentationFramework-SystemData
- PresentationFramework-SystemDrawing
- PresentationFramework-SystemXmlLinq
- PresentationFramework-SystemXml
- PenImc
- dll
- tablib
- PresentationBuildTasks
- PresentationCore
- ref
- PresentationFramework
- ref
- PresentationUI
- ref
- ReachFramework
- ref
- System.Printing
- CPP/src
- ref
- System.Windows.Controls.Ribbon
- ref
- System.Windows.Input.Manipulations
- ref
- System.Windows.Presentation
- ref
- System.Xaml
- ref
- Themes
- PresentationFramework.Aero2
- ref
- PresentationFramework.AeroLite
- ref
- PresentationFramework.Aero
- ref
- PresentationFramework.Classic
- ref
- PresentationFramework.Fluent
- ref
- PresentationFramework.Luna
- ref
- PresentationFramework.Royale
- ref
- UIAutomation
- UIAutomationClientSideProviders
- ref
- UIAutomationClient
- ref
- UIAutomationProvider
- ref
- UIAutomationTypes
- ref
- WindowsBase
- ref
- WindowsFormsIntegration
- ref
- WpfGfx
- common
- DynamicCall
- effects
- scanop
- core
- api
- av
- common
- control/util
- dll
- fxjit
- Collector
- Compiler
- PixelShader
- Platform
- geometry
- glyph
- hw
- meta
- resources
- sw/swlib
- targets
- uce
- tests
- UnitTests
- PresentationCore.Tests
- System.Xaml.Tests
- WindowsBase.Tests
- Resources
- System/Windows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
116 files changed
+1290
-1554
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 64 | + | |
72 | 65 | | |
73 | 66 | | |
74 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 2 | | |
33 | 3 | | |
34 | 4 | | |
| |||
45 | 15 | | |
46 | 16 | | |
47 | 17 | | |
48 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 120 | + | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 53 | + | |
70 | 54 | | |
71 | 55 | | |
72 | 56 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 57 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 58 | | |
104 | 59 | | |
105 | 60 | | |
| |||
110 | 65 | | |
111 | 66 | | |
112 | 67 | | |
113 | | - | |
| 68 | + | |
114 | 69 | | |
115 | 70 | | |
116 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
File mode changed.
0 commit comments