Can't build wasdk gallery · Issue #669 · CommunityToolkit/Labs-Windows · GitHub
Skip to content

Can't build wasdk gallery #669

Open
Open

Description

@HO-COOH

Describe the bug

I have double checked all the build requirements:

  • Visual studio 2022, obviously
  • .net8 sdk
C:\Users\Peter>dotnet --list-sdks
8.0.408 [C:\Program Files\dotnet\sdk]
9.0.203 [C:\Program Files\dotnet\sdk]
  • Windows 10 19041 sdk

Image

  • Windows 10 21H1 higher, obviously I am using windows 11
  • dotnet tool restore ran
  • GenerateAllSolution.bat ran

And I still can't build the gallery app with wasdk target

build log.txt

Steps to reproduce

1. Open the `CommunityToolkit.AllComponents.sln`, click `CommunityToolkit.App.Wasdk` target, click debug
2. See attached build log

Expected behavior

Builds fine

Screenshots

Image

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

windows 11 24H2

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.13.6

Device form factor

Desktop

Additional context

Actually, why am I seeing Android build errors

Help us help you

Yes, I'd like to be assigned to work on this item.

Activity

  1. michael-hawker commented on May 6, 2025

    @michael-hawker
    Member

    Yup, was going to call out the first error is:

    4>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.61\tools\Xamarin.Android.Tooling.targets(62,5): error XA5300: The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk
    4>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.61\tools\Xamarin.Android.Tooling.targets(62,5): error XA5300: To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.
    4
    

    @Arlodotexe why is it trying to build Android here, I thought local should only be WASDK by default?

    The script parameters call this out too:
    https://github.com/CommunityToolkit/Tooling-Windows-Submodule/blob/d794325026c3bdebd0d92b232476af0c01b11cb3/GenerateAllSolution.ps1#L14-L15

  2. Arlodotexe commented on May 8, 2025

    @Arlodotexe
    Member

    @Arlodotexe why is it trying to build Android here, I thought local should only be WASDK by default?

    It is wasdk by default, it shouldn't be trying to build the Android TFM unless it was manually enabled by the user.

    @HO-COOH Could you provide a build binlog that we can inspect? You should be able to do this inside Visual Studio using the Project System Tools extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions