You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Breaking] Move UWP/WinUI support to separate packages #7225
Today we pack everything in MSTest.TestFramework. It's a better idea to split UWP/WinUI support into new NuGet packages, MSTest.UWP and MSTest.WinUI. This will also make the packaging fitting into lib more naturally instead of us trying to detect the platform and plugging the assemblies ourselves.
Reacted by Amaury Levé, Mertsch, Frulfump and Nirmal Guru
We looked into this in depth over the last few weeks (design and real-package experiments in #12513, follow-ups in #12450 and #12578), and I'd like to step back before committing to it.
This would be a big breaking change. UWP/WinUI support is not only a framework concern: [UITestMethod] lives in the framework, but dispatching it to the UI thread requires a UWP- or WinUI-specific build of the adapter and platform services. A proper split therefore affects bothMSTest.TestFramework and MSTest.TestAdapter, which means new framework packages, new adapter packages, and a different metapackage for UI projects (plus matching MSTest.Sdk changes). Our experiments also surfaced concrete incompatibilities:
Classic UWP projects that reference package-relative DLL paths break.
Modern UWP adapter messages change language because satellites are delivered differently.
As of today, we have no reported problem with the current approach beyond extra complexity on our side. Everything still ships through MSTest.TestFramework / MSTest.TestAdapter (or MSTest / MSTest.Sdk), and the build selects the UWP or WinUI assets from the project's UseWinUI / UseUwp / UseUwpTools properties. The main functional concern we found—a shared UI test library becoming a test application—is addressed in #12578: such a library can now reference MSTest.TestFramework alone and still use [UITestMethod].
Given the cost to users, I'm not convinced this break is worth it without concrete user pain. MertschFrulfumpNirmal Guru (@Nirmal4G), you upvoted this issue: could you share the scenarios or problems you hit with the current packaging? For example:
Wrong assets, version conflicts, or restore/build errors in UWP or WinUI projects.
Shared test libraries, multi-targeting, or Central Package Management issues.
Package size or unwanted dependencies.
Non-SDK or custom build setups that the property-based selection doesn't handle.
If there are real problems, we'd rather fix them directly or revisit the split with that evidence. Without them, I'm inclined to keep the current layout and close this issue.
Amaury Levé (@Evangelink) There is no real issue. I upvoted on a general feeling that this would be nice and that a published MSTest (to be executed later in deployment) can get quite large (number / MB in files), but I did NOT look at those files individually to make a good assertion!
If I use MSTest as advertised, no issues that you guys won't fix. It has a business/commercial necessity to fix those. But the minute I go with heavy build customization, that's where everything breaks.
Nowadays with LLMs, I can fix them myself and maintain an entire unified .NET tools fork that satisfies my requirements, but it's still cost-prohibitive for most of us and our clients.
Specifically, as a response to your comment, I can do away with the first issue now that I have access to LLMs, but I still face issues with the last 3 ones so much so that I have to maintain my own fork.
The consistently inconsistent nature of the platform and tools design across various teams and ownerships with no unified vision is the root of the problem, as it is to the entirety of Microsoft.
That said, for the very specific issues and problems I face with MSTest, someone else would always have filed them and I just upvote it, as my individual feedback, to my disappointment, has always been ignored in the past. I'm not sad or anything. It is what it is.
If you have to keep your own forks, that looks like something is really fishy. Would you mind expanding a bit more on specific problems you have (even if you already posted them please). I am actively working on MSTest v5 and MTP v3, so we have a window for breaking changes, I just want to be pragmatic in the changes I do (it's hard to accomodate everyone - small projects to massive ones, people following updates and people doing massive jumps).
my individual feedback, to my disappointment, has always been ignored in the past.
Sorry this has been your experience. Your alias is familar but I can't tell from top of my head what you requested and that we rejected. I am always trying to carefully review suggestions and bugs raised, the problem usually lies when the change impacts multiple tools as it's quite hard to synchronize priorities across teams :c
I'm not much of an open source guy so you won't see my work in the wild, but we run a small company that manages a lot of existing projects written by others. By others, I mean in-house teams, partners, contractors and 3rd party vendors who may have discontinued or run out of business.
Among those, we have a lot of .NET and C++/CLR projects built on Mono/Framework to the current CoreCLR ones. As such, I need unified tooling across all the versions and variants all the way back to the beginning to maintain our projects. It doesn't have to be perfect or have full Visual Studio support, but it needs to work with the latest MSBuild tools.
When we started, the SDK Extras became our starting point, and we built from there. Then around .NET 2 development, we asked the team to redesign the tools so they could support single project, package layering, SDK composition, true multi-targeting and multi-mode testing through proper MSBuild SDK design. This could have allowed us to plug in legacy tools' MSBuild repacks without requiring binary modifications to the tool assemblies themselves.
The proposal was rejected as it was such a big undertaking across all the teams. We asked again during .NET 5 development as it sought to bring unification. We also proposed some foundational changes that would set up the platform for years to come. Mind you, all these proposals were just terminology, taxonomy and tooling design changes.
Nothing to do with Language, Framework or Runtime. Although we also requested first-class support for Path, SecureString and Text types and merging of regular and Async/Await syntax without requiring duplicate Async variants. But those were requested well before .NET 5 development.
Once again, it's okay. I'm not an enterprise customer of Microsoft, so I'm not expecting first-class or priority support. But the things I proposed would help them a lot and more. At the least, I hope the engineers (like you) keep those ideas in mind, improve upon them and eventually apply them when the time comes, even without someone else requesting it.
Thanks for taking the time to share this context and your feedback. The broader tooling and SDK-design issues you describe make sense, and I agree they go well beyond MSTest and would involve multiple teams. I can't commit to any particular changes or outcome, but I appreciate you explaining the challenges and the direction you think would help.
Activity
Evangelink commentedon Nov 25, 2026
We looked into this in depth over the last few weeks (design and real-package experiments in #12513, follow-ups in #12450 and #12578), and I'd like to step back before committing to it.
This would be a big breaking change. UWP/WinUI support is not only a framework concern:
[UITestMethod]lives in the framework, but dispatching it to the UI thread requires a UWP- or WinUI-specific build of the adapter and platform services. A proper split therefore affects bothMSTest.TestFrameworkandMSTest.TestAdapter, which means new framework packages, new adapter packages, and a different metapackage for UI projects (plus matchingMSTest.Sdkchanges). Our experiments also surfaced concrete incompatibilities:As of today, we have no reported problem with the current approach beyond extra complexity on our side. Everything still ships through
MSTest.TestFramework/MSTest.TestAdapter(orMSTest/MSTest.Sdk), and the build selects the UWP or WinUI assets from the project'sUseWinUI/UseUwp/UseUwpToolsproperties. The main functional concern we found—a shared UI test library becoming a test application—is addressed in #12578: such a library can now referenceMSTest.TestFrameworkalone and still use[UITestMethod].Given the cost to users, I'm not convinced this break is worth it without concrete user pain. Mertsch Frulfump Nirmal Guru (@Nirmal4G), you upvoted this issue: could you share the scenarios or problems you hit with the current packaging? For example:
If there are real problems, we'd rather fix them directly or revisit the split with that evidence. Without them, I'm inclined to keep the current layout and close this issue.
Mertsch commentedon Nov 25, 2026
Amaury Levé (@Evangelink) There is no real issue. I upvoted on a general feeling that this would be nice and that a published MSTest (to be executed later in deployment) can get quite large (number / MB in files), but I did NOT look at those files individually to make a good assertion!
I am fine with keeping things as they are.
Nirmal4G commentedon Nov 25, 2026
In a very 10k foot view...
If I use MSTest as advertised, no issues that you guys won't fix. It has a business/commercial necessity to fix those. But the minute I go with heavy build customization, that's where everything breaks.
Nowadays with LLMs, I can fix them myself and maintain an entire unified .NET tools fork that satisfies my requirements, but it's still cost-prohibitive for most of us and our clients.
Specifically, as a response to your comment, I can do away with the first issue now that I have access to LLMs, but I still face issues with the last 3 ones so much so that I have to maintain my own fork.
The consistently inconsistent nature of the platform and tools design across various teams and ownerships with no unified vision is the root of the problem, as it is to the entirety of Microsoft.
That said, for the very specific issues and problems I face with MSTest, someone else would always have filed them and I just upvote it, as my individual feedback, to my disappointment, has always been ignored in the past. I'm not sad or anything. It is what it is.
Evangelink commentedon Nov 25, 2026
If you have to keep your own forks, that looks like something is really fishy. Would you mind expanding a bit more on specific problems you have (even if you already posted them please). I am actively working on MSTest v5 and MTP v3, so we have a window for breaking changes, I just want to be pragmatic in the changes I do (it's hard to accomodate everyone - small projects to massive ones, people following updates and people doing massive jumps).
Sorry this has been your experience. Your alias is familar but I can't tell from top of my head what you requested and that we rejected. I am always trying to carefully review suggestions and bugs raised, the problem usually lies when the change impacts multiple tools as it's quite hard to synchronize priorities across teams :c
Nirmal4G commentedon Nov 26, 2026
I'm not much of an open source guy so you won't see my work in the wild, but we run a small company that manages a lot of existing projects written by others. By others, I mean in-house teams, partners, contractors and 3rd party vendors who may have discontinued or run out of business.
Among those, we have a lot of .NET and C++/CLR projects built on Mono/Framework to the current CoreCLR ones. As such, I need unified tooling across all the versions and variants all the way back to the beginning to maintain our projects. It doesn't have to be perfect or have full Visual Studio support, but it needs to work with the latest MSBuild tools.
When we started, the SDK Extras became our starting point, and we built from there. Then around .NET 2 development, we asked the team to redesign the tools so they could support single project, package layering, SDK composition, true multi-targeting and multi-mode testing through proper MSBuild SDK design. This could have allowed us to plug in legacy tools' MSBuild repacks without requiring binary modifications to the tool assemblies themselves.
The proposal was rejected as it was such a big undertaking across all the teams. We asked again during .NET 5 development as it sought to bring unification. We also proposed some foundational changes that would set up the platform for years to come. Mind you, all these proposals were just terminology, taxonomy and tooling design changes.
Nothing to do with Language, Framework or Runtime. Although we also requested first-class support for
Path,SecureStringandTexttypes and merging of regular and Async/Await syntax without requiring duplicate Async variants. But those were requested well before .NET 5 development.Once again, it's okay. I'm not an enterprise customer of Microsoft, so I'm not expecting first-class or priority support. But the things I proposed would help them a lot and more. At the least, I hope the engineers (like you) keep those ideas in mind, improve upon them and eventually apply them when the time comes, even without someone else requesting it.
Evangelink commentedon Nov 26, 2026
Thanks for taking the time to share this context and your feedback. The broader tooling and SDK-design issues you describe make sense, and I agree they go well beyond MSTest and would involve multiple teams. I can't commit to any particular changes or outcome, but I appreciate you explaining the challenges and the direction you think would help.