Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank + Maui + CSharp causing WinAppSdk version error #396

Closed
nickrandolph opened this issue Nov 6, 2023 · 0 comments · Fixed by #397 or #401
Closed

Blank + Maui + CSharp causing WinAppSdk version error #396

nickrandolph opened this issue Nov 6, 2023 · 0 comments · Fixed by #397 or #401
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@nickrandolph
Copy link
Contributor

nickrandolph commented Nov 6, 2023

Raised from unoplatform/uno#14268

Current behavior

Create new application using blank, maui and csharp markup

dotnet new unoapp -preset blank -platforms windows -platforms android -presentation none -theme fluent -nav blank -log none -maui -markup csharp -o MauiWinCSharpApp

Building causes version mismatch error regarding WinAppSdk

Expected behavior

Solution should build without error

Workaround

Update class library to include winappsdk package reference

<When Condition="$(IsWinAppSdk)">
      <ItemGroup>
        <PackageReference Include="Microsoft.WindowsAppSDK" VersionOverride="1.4.231008000" />
        <PackageReference Include="Microsoft.Windows.SDK.BuildTools" VersionOverride="10.0.22621.756" />
      </ItemGroup>
    </When>
@nickrandolph nickrandolph added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
1 participant