Welcome to our Microsoft Q&A platform!
TargetFramework is not supported to set as MonoAndroid, you could right click the shared project -> Properties, to check the value list of this option.
Because some of these have platform-specific code and I do not want to include Android dependencies on iOS
The default value of Condition will apply the configuration according to the running platform. It'wll not include a native dependencies to another platform.
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <DebugType>portable</DebugType> <DebugSymbols>true</DebugSymbols> </PropertyGroup>
You could check the reference of the platform project. For example, Android project does not reference the iOS project.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.