如何指定引用的多目标项目的平台?

问题描述 投票:1回答:2

如果我有一个多目标(netstandard16和PCL Profile44)项目(新的SDK样式csproj)并且我在Xamarin.iOS / Android项目中将其作为项目参考引用,我该如何指定引用的平台?

Xamarin项目提出了netstandard标准,但我想在这种情况下使用PCL。

c# visual-studio xamarin msbuild .net-standard
2个回答
2
投票

您可以使用以下方法覆盖项目引用中的目标框架:

<ProjectReference Include="../other/other.csproj" AdditionalProperties="TargetFramework=your-pcl-TFM" />

2
投票

你不能和NuGet也不会。 Netstandard始终胜过传统的PCL。你为什么要反过来?

© www.soinside.com 2019 - 2024. All rights reserved.