Baseflow / Baseflow/LottieXamarin

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

Open
#390 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
253
PR merge metrics
No merged PRs in 30d

Description

## 🐛 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:**
- [ ] :iphone: iOS
- [ ] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [X] :monkey: Xamarin.Forms

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the dotnet build in Visual Studio for Mac with a Xamarin.Forms project using Lottie and an NUnit net6.0 or net7.0 test project that references it. Investigate the project or package reference that triggers NETSDK1136. Done means the unit test project builds without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.