Skip to content

Commit 5a81c1e

Browse files
EvangelinkCopilotCopilot
authored
Ship Microsoft.Testing.Platform.Internal.DotnetTest as a preview package (#9400)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 86aa5a4 commit 5a81c1e

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

src/Platform/Microsoft.Testing.Platform.Internal.DotnetTest/Microsoft.Testing.Platform.Internal.DotnetTest.csproj

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,20 @@
4141
<DevelopmentDependency>true</DevelopmentDependency>
4242

4343
<!--
44-
IsShipping=false keeps this package OUT of nuget.org and in the internal (NonShipping) feed used for cross-repo
45-
dependency flow (dotnet/sdk). NOTE: the exact internal-feed shipping mechanism still needs confirmation with
46-
the Arcade team (see PR discussion).
44+
IsShipping=true publishes this package (signed) on the same train as the rest of Microsoft.Testing.Platform so
45+
it can flow to dotnet/sdk via the normal dependency flow. The 'Internal' in the name plus the always-preview
46+
version (see SuppressFinalPackageVersion below) make clear it is an implementation detail, NOT a public API.
4747
-->
48-
<IsShipping>false</IsShipping>
48+
<IsShipping>true</IsShipping>
49+
50+
<!--
51+
Keep this package preview even in stabilized/official builds. It inherits VersionPrefix from
52+
src/Platform/Directory.Build.props ($(TestingPlatformVersionPrefix)) and the repo-wide PreReleaseVersionLabel (eng/Versions.props),
53+
so it ships as <TestingPlatformVersionPrefix>-preview.* today. Without this, a stabilized MTP release
54+
(DotNetFinalVersionKind=release) would drop the suffix and publish a STABLE 'Internal' package - which we do not
55+
want while the dotnet test shared-source surface is still partial. Mirrors MSTest.SourceGeneration.
56+
-->
57+
<SuppressFinalPackageVersion>true</SuppressFinalPackageVersion>
4958

5059
<!-- NU5128: source-only package has no lib/ assembly, only contentFiles. -->
5160
<NoWarn>$(NoWarn);NU5128</NoWarn>

src/Platform/Microsoft.Testing.Platform.Internal.DotnetTest/PACKAGE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ stay a **single source of truth** across the [microsoft/testfx](https://github.c
77
break).
88

99
> ⚠️ This package is an **implementation detail** of `dotnet test` integration — that is what the `Internal` in the
10-
> name signals. It is `IsShipping=false` (not published to nuget.org) and is **not** intended for direct end-user
11-
> consumption. (A *public* MTP client/orchestration library was proposed in
10+
> name signals. It ships as a **preview** package (`IsShipping=true`, always preview via `SuppressFinalPackageVersion`)
11+
> on the same train as the rest of Microsoft.Testing.Platform so it can flow to dotnet/sdk, and is **not** intended for
12+
> direct end-user consumption. (A *public* MTP client/orchestration library was proposed in
1213
> [#5667](https://github.com/microsoft/testfx/issues/5667); that is a separate effort, closed pending a real use
1314
> case.)
1415

0 commit comments

Comments
 (0)