Skip to content

Not able to Build Unit Test Project(.NET 6) in MAC referencing .net standard library(Xamarin Forms) which uses Lottie  #390

Open
@Manojyarram

Description

@Manojyarram

🐛 Bug Report

dotnet build unit test throwing below error
NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.

Expected behavior

Need to be able to run Unit Test without any errors

Reproduction steps

In Visual Studio for MAC
Create a new Xamarin Project add Lottie library then create a nunit test project (net6.0 or net7.0) and add Xamarin project reference and try to build to see the issue.

Configuration

Version: 4.0.11 (May be other versions as well)

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions