Skip to content

fix: WebView2 version single-source-of-truth + bump to 1.0.4078.44 - #43

Merged
bilbospocketses merged 1 commit into
mainfrom
fix/webview2-version-sync
Jul 18, 2026
Merged

fix: WebView2 version single-source-of-truth + bump to 1.0.4078.44#43
bilbospocketses merged 1 commit into
mainfrom
fix/webview2-version-sync

Conversation

@bilbospocketses

Copy link
Copy Markdown
Owner

What

  1. Single source of truthsrc/Tiny11.WebView2.psm1 now resolves the WebView2 version
    from the launcher csproj (Get-Tiny11WebView2Version) instead of a hardcoded
    $PinnedVersion = 1.0.2535.41. The module follows the csproj automatically.
  2. Applied the bump that exposed the bug: Microsoft.Web.WebView21.0.4078.44
    (supersedes chore(deps): Bump Microsoft.Web.WebView2 from 1.0.2535.41 to 1.0.4078.44 #39).
  3. Tests derive the expected version the same way (were hardcoded), + coverage for the resolver.

Why

The version lived in two places (module + csproj). Dependabot only bumps the csproj, so the
module kept pointing at the OLD NuGet path and the finds the NuGet-restored DLLs Pester
integration test failed — that's why #39 (the WebView2 bump) went red. Now a bump flows
through with no second edit.

Verification

dotnet build clean; all 14 WebView2 Pester tests pass, including the integration test
that was failing on #39.

…) + bump to 1.0.4078.44

The WebView2 version was hardcoded in src/Tiny11.WebView2.psm1 ($PinnedVersion =
1.0.2535.41) AND declared in the launcher csproj. Dependabot bumps only the csproj, so
the module kept resolving the OLD NuGet path -- the "finds the NuGet-restored DLLs"
Pester integration test then failed (why WebView2 bump PR #39 was red).

- Get-Tiny11WebView2Version reads the version from the launcher csproj's
  PackageReference, so the module always follows the csproj. No hardcoded copy, no
  drift, no second edit on a bump.
- Tests derive the expected version the same way (were hardcoded to 1.0.2535.41),
  plus coverage for the new resolver.
- Applied the bump that exposed this: Microsoft.Web.WebView2 -> 1.0.4078.44 (supersedes #39).

Verified locally: dotnet build clean; all 14 WebView2 Pester tests pass, including the
integration test that was failing.
@bilbospocketses
bilbospocketses enabled auto-merge (squash) July 18, 2026 21:47
@bilbospocketses
bilbospocketses merged commit 7b09fd6 into main Jul 18, 2026
6 checks passed
@bilbospocketses
bilbospocketses deleted the fix/webview2-version-sync branch July 18, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant