Skip to content

[BUG] SkiaSharp.Views.WinUI doesn't work with .Net 7 #2272

Closed

Description

@Summpot

Description

Assembly 'SkiaSharp.Views.Windows' with identity 'SkiaSharp.Views.Windows, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' uses 'WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709' which has a higher version than referenced assembly 'WinRT.Runtime' with identity 'WinRT.Runtime, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'

Code

Expected Behavior

Actual Behavior

Basic Information

Detailed IDE/OS information (click to expand)

PASTE ANY DETAILED VERSION INFO HERE

Screenshots

Reproduction Link
App1.zip

Activity

  1. mattleibow commented on Oct 4, 2022

    @mattleibow
    Contributor

    Booo. I literally got this right now and I am trying to figure this out.

    EDIT
    Try adding this to your csproj:

    <ItemGroup>
        <FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" 
            RuntimeFrameworkVersion="10.0.19041.27" 
            TargetingPackVersion="10.0.19041.27" />
    </ItemGroup>

    EDIT 2

    Yeah, this worked for me. Not sure how I am building with a newer version of WinRT.Runtime than the net7 SDK, but I know how I can drop that to one I trust.

  2. added a commit that references this issue on Oct 4, 2022
    032531c
  3. added this to the v2.88.4 milestone on Oct 4, 2022
  4. Summpot commented on Oct 4, 2022

    @Summpot
    Author

    Have you tried referencing a newer version of the Microsoft.WindowsAppSDK?

  5. Summpot commented on Oct 4, 2022

    @Summpot
    Author

    It looks like other libraries that reference the newer Microsoft.WindowsAppSDK are working properly on .Net 7

  6. added a commit that references this issue on Oct 5, 2022
    8ccf945
  7. mattleibow commented on Oct 12, 2022

    @mattleibow
    Contributor

    @Summpot updating WASDK here: #2276

  8. ghost locked as resolved and limited conversation to collaborators on Nov 11, 2022
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions