严重性代码描述项目文件行抑制状态错误无法安装包 'Refit 4.0.1'
Severity Code Description Project File Line Suppression State Error Could not install package 'Refit 4.0.1'
在 Xamarin MvvmCross Profile 111 .NetPortable 4.5 中安装 Refit
Severity Code Description Project File Line Suppression State Error Could not install package 'Refit 4.0.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
docs 确实说过
Refit currently supports the following platforms and any .NET Standard
1.4 target:
- UWP
- Xamarin.Android
- Xamarin.Mac
- Xamarin.iOS
- Desktop
- .NET 4.5
- .NET Core
我是不是漏掉了什么?
您正在将 Refit 4 安装到 PCL。 Refit 是一个 NET Standard 1.4 库,any PCL 配置文件无法使用它。
将您的 PCL 升级到 NET Standard(最低 1.4)或将 Refit 降级到以前的非 NET Standard 版本。
我使用 Angular CLI 构建了 .Net Core 应用程序,我停止了 dotnet watch 运行 并重新执行了脚手架(这导致了这个构建错误)并且它在没有错误
在 Xamarin MvvmCross Profile 111 .NetPortable 4.5 中安装 Refit
Severity Code Description Project File Line Suppression State Error Could not install package 'Refit 4.0.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
docs 确实说过
Refit currently supports the following platforms and any .NET Standard 1.4 target:
- UWP
- Xamarin.Android
- Xamarin.Mac
- Xamarin.iOS
- Desktop
- .NET 4.5
- .NET Core
我是不是漏掉了什么?
您正在将 Refit 4 安装到 PCL。 Refit 是一个 NET Standard 1.4 库,any PCL 配置文件无法使用它。
将您的 PCL 升级到 NET Standard(最低 1.4)或将 Refit 降级到以前的非 NET Standard 版本。
我使用 Angular CLI 构建了 .Net Core 应用程序,我停止了 dotnet watch 运行 并重新执行了脚手架(这导致了这个构建错误)并且它在没有错误