I have a couple of libraries that have multiple framework monikers like so:
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
At the same time I have some unit test libraries that depend on that library, that I want to run on our CI runner. The unit tests do not require anything from the .net8.0
android framework.
When I try to build the unit test on the CI runner however, I get a lot of To build this project, the following workloads must be installed: android
errors. While I could just install the workload, this definitely increases the build time.
I’d rather have purely net8.0
build of the library since the tests also only use net8.0
. Is there a way to force a build that only uses net8.0
?