Skip to content

Remove retired CommunityToolkit.WinAppSDK.LottieWinRT package from DrawingIsland#645

Open
qiutongMS wants to merge 1 commit into
release/experimentalfrom
chore/remove-retired-lottie-package
Open

Remove retired CommunityToolkit.WinAppSDK.LottieWinRT package from DrawingIsland#645
qiutongMS wants to merge 1 commit into
release/experimentalfrom
chore/remove-retired-lottie-package

Conversation

@qiutongMS

Copy link
Copy Markdown

Description

Removes the retired CommunityToolkit.WinAppSDK.LottieWinRT (and its sibling CommunityToolkit.WinUI.Lottie) NuGet packages from the DrawingIsland sample.

Both packages are removed from nuget.org (not just unlisted):

  • https://www.nuget.org/packages/CommunityToolkit.WinAppSDK.LottieWinRT → 404
  • https://api.nuget.org/v3-flatcontainer/communitytoolkit.winappsdk.lottiewinrt/index.json → 404

This silently breaks dotnet restore for new clones. The only caller in this repo (LottieIslandScenario) was already commented out in Program.cs, so the practical change is build-system cleanup.

Changes

  • Samples/Directory.Packages.props — remove both <PackageVersion> entries.
  • Samples/Islands/DrawingIsland/DrawingCsTestApp/DrawingCsTestApp.csproj
    • Remove the two Lottie <PackageReference> entries.
    • Add an explicit <PackageReference Include="Microsoft.Graphics.Win2D" />. This is required: HelmetScenario.cs and SceneNodeCommon.cs still using Microsoft.Graphics.Canvas, which was previously being pulled in transitively through Lottie. Version comes from central package management.
    • Remove the now-unused <Content Update="Assets\LottieLogo1.json" /> block.
  • Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs — delete the dead //var lottie = new LottieIslandScenario(...) lines and their #region wrapper.
  • Delete Samples/Islands/DrawingIsland/DrawingCsTestApp/LottieIslandScenario.cs.
  • Delete Samples/Islands/DrawingIsland/DrawingCsTestApp/Assets/LottieLogo1.json (~190 KB asset).

Verification

  • msbuild DrawingCsTestPackage\DrawingCsTestPackage.wapproj /p:Configuration=Debug /p:Platform=x64 → 0 errors, 0 warnings.
  • Packaged app launches via winapp run; main window Drawing C# .NET TestApp opens. No scenarios are removed (the only scenario removed is the one that was already disabled).
  • Microsoft.Graphics.Canvas.dll correctly deploys under runtimes/win-x64/native/.

Target Release

N/A — dependency cleanup, no API or behavior change.

Checklist

  • Samples build and run using the Visual Studio versions listed in the Windows development docs.
  • Sample builds clean (DrawingCsTestPackage verified x64/Debug; launches via winapp run).
  • Samples build and run on all supported platforms (x64, x86, ARM64) and configurations (Debug, Release). Verified x64/Debug; change is platform-agnostic NuGet metadata + dead-code removal.
  • Samples set the minimum supported OS version to Windows 10 version 1809. (Unchanged.)
  • Sample builds clean with no warnings or errors.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The CommunityToolkit.WinAppSDK.LottieWinRT package has been retired
and is no longer available on nuget.org (the package page and the
v3-flatcontainer index both return 404). Any clean nuget restore of
DrawingCsTestApp therefore failed.

The Lottie code path in this sample is not active — the call site in
Program.cs (var lottie = LottieIslandScenario.CreateLottieIsland(...))
was already commented out — so removing the dependency has no runtime
effect.

Cleanup:
* Delete LottieIslandScenario.cs and the unused Assets/LottieLogo1.json
  asset so the sample no longer references the retired package at all.
* Remove the CommunityToolkit.WinAppSDK.LottieWinRT and
  CommunityToolkit.WinUI.Lottie <PackageReference>s from
  DrawingCsTestApp.csproj and their <PackageVersion>s from the
  repository-level Samples/Directory.Packages.props.
* Add Microsoft.Graphics.Win2D as a direct <PackageReference>. It used
  to come in transitively via the Lottie package and is still needed
  by HelmetScenario.cs and SceneNodeCommon.cs (which use
  Microsoft.Graphics.Canvas types). The package version is already
  declared centrally in Samples/Directory.Packages.props.
* Remove the dead commented-out Lottie call site and its #region
  wrapper from Program.cs, and the <Content Update> entry for
  LottieLogo1.json from the csproj.

Verified: msbuild DrawingCsTestApp.csproj -p:Configuration=Debug
-p:Platform=x64 produces a clean restore and build (0 warnings,
0 errors).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the DrawingIsland sample’s dependency graph by removing references to the retired CommunityToolkit.*.Lottie* packages (now removed from nuget.org), eliminating restore failures for fresh clones while preserving the sample’s buildability by explicitly referencing Win2D.

Changes:

  • Removed central package version entries and project package references for the retired Lottie packages.
  • Added an explicit Microsoft.Graphics.Win2D package reference to keep Microsoft.Graphics.Canvas usages building.
  • Removed dead, already-disabled Lottie scenario code and deleted the unused Lottie scenario file + asset.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Samples/Directory.Packages.props Removes retired Lottie package version entries from central package management.
Samples/Islands/DrawingIsland/DrawingCsTestApp/DrawingCsTestApp.csproj Drops Lottie package refs, adds explicit Win2D dependency, removes now-unused content item.
Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs Deletes dead commented-out Lottie scenario wiring.
Samples/Islands/DrawingIsland/DrawingCsTestApp/LottieIslandScenario.cs Removes the Lottie scenario implementation that depended on retired packages.
Samples/Islands/DrawingIsland/DrawingCsTestApp/Assets/LottieLogo1.json Deletes the unused Lottie JSON asset.

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.

2 participants