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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 7 tasks
Manojyarram opened this issue Feb 27, 2023 · 0 comments

Comments

@Manojyarram
Copy link

馃悰 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant