Skip to content

Preview Store package breaks Stable #1418

@JohnMcPMS

Description

@JohnMcPMS

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

The current preview package has added items that the stable version does not support. Presumably this is related to #1368

> dsc resource list
2026-03-05T00:17:15.359264Z ERROR Manifest: Invalid manifest for resource 'C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration-Preview_3.2.12.0_x64__8wekyb3d8bbwe\powershell.dsc.resource.json'
JSON: unknown field `deprecationMessage`, expected one of `$schema`, `type`, `kind`, `version`, `description`, `tags`, `get`, `set`, `whatIf`, `test`, `delete`, `export`, `resolve`, `validate`, `adapter`, `exitCodes`, `schema` at line 6 column 24

Type  Kind  Version  Capabilities  RequireAdapter  Description
--------------------------------------------------------------

Steps to reproduce

  1. Install Stable Store Package (3.1.2)
  2. Install Preview Store Package (3.2.0-preview.12)
  3. Using the stable package dsc resource list.
> dsc resource list
2026-03-05T00:17:15.359264Z ERROR Manifest: Invalid manifest for resource 'C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration-Preview_3.2.12.0_x64__8wekyb3d8bbwe\powershell.dsc.resource.json'
JSON: unknown field `deprecationMessage`, expected one of `$schema`, `type`, `kind`, `version`, `description`, `tags`, `get`, `set`, `whatIf`, `test`, `delete`, `export`, `resolve`, `validate`, `adapter`, `exitCodes`, `schema` at line 6 column 24

Type  Kind  Version  Capabilities  RequireAdapter  Description
--------------------------------------------------------------

Expected behavior

The schema version used in the preview package allows for the new field and the stable version uses the new schema version to validate it (or uses semver and a relaxed validation scheme).

The stable version carries on in the face of one failed resource manifest.

Actual behavior

The stable version rejects the preview resource manifest and then fails to enumerate any resources.

Error details

> dsc resource list
2026-03-05T00:17:15.359264Z ERROR Manifest: Invalid manifest for resource 'C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration-Preview_3.2.12.0_x64__8wekyb3d8bbwe\powershell.dsc.resource.json'
JSON: unknown field `deprecationMessage`, expected one of `$schema`, `type`, `kind`, `version`, `description`, `tags`, `get`, `set`, `whatIf`, `test`, `delete`, `export`, `resolve`, `validate`, `adapter`, `exitCodes`, `schema` at line 6 column 24

Type  Kind  Version  Capabilities  RequireAdapter  Description
--------------------------------------------------------------

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.28537
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.1.2

Visuals

No response

Metadata

Metadata

Type

No type

Projects

Status

Reviewed

Relationships

None yet

Development

No branches or pull requests

Issue actions