Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] nuget package target .netcoreapp 3.1 has dependency on Xamarin.Forms.Platform.WPF which breaks on mac buildagent #968

@rikbosch

Description

@rikbosch

Description

The Xamarin.CommunityToolkit has a dependency on Xamarin.Forms.Platform.WPF when targetting .netcoreapp3.1. Xamarin.Forms.Platform.WPF in turn is dependent on OpenTK, which is not compatible with .netcoreapp3.1

from our build logs:

warning NU1701: Package 'OpenTK 3.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.

warning NU1701: Package 'OpenTK.GLControl 3.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.

/usr/local/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error NETSDK1073: The FrameworkReference 'Microsoft.WindowsDesktop.App' was not recognized [/Users/administrator/devops-agents/_work/1/s/src/DriverApp.UnitTests/DriverApp.UnitTests.csproj]

Our testproject does have a FrameworkReference to Microsoft.WindowsDesktop.App

Steps to Reproduce

  1. Create an XUnit test project, targetting .netcoreapp3.1
  2. Add packagereference to Xamarin.CommunityToolkit 1.0.3
  3. run dotnet test on a mac

Expected Behavior

Project builds and runs tests.

Actual Behavior

Build fails with error NETSDK1073: The FrameworkReference 'Microsoft.WindowsDesktop.App' was not recognized

Basic Information

  • Version with issue: 1.0.3
  • Last known good version: unknown
  • IDE: Visual Studio 2019 (paired to mac)
  • Platform Target Frameworks:
    • iOS: Xamarin IOS 14.8
    • netcoreapp3.1
  • Affected Devices:
    • mac build agent

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Breaky break.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions