Baseflow / LottieXamarin

Render After Effects animations natively on Android, iOS, MacOS and TvOS for Xamarin
https://baseflow.com
Apache License 2.0
1.22k stars 262 forks source link

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

Open Manojyarram opened 1 year ago

Manojyarram commented 1 year ago

🐛 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: