Simple.OData.Client + MonoDroid

本文关键字:MonoDroid Client OData Simple | 更新日期: 2023-09-27 17:58:33

我很难为我的MonoDroid应用启用Simple.OData.Client

我对Xamarin的环境还是很环保的。我已经从github中删除了Simple.OData.Client,并试图将Simple.OData.Client.Core添加到我的解决方案中

当我这样做时,解决方案构建会由于nuget问题而失败。MonoDroid有nuget支持吗?即使当我加载Simple.OData.Client.Tests.Mono解决方案时,我也无法获得nuget支持。我收到消息:

C:'Projects'playground.monodroid'ext'Simple.OData.Client'Solutions'.nuget'NuGet.targets(42,9): error : Package restore is disabled by default. To give consent, open the Visual Studio Options dialog, click on Package Manager node and check 'Allow NuGet to download missing packages during build.' You can also give consent by setting the environment variable 'EnableNuGetPackageRestore' to 'true'.
C:'Projects'playground.monodroid'ext'Simple.OData.Client'Solutions'.nuget'NuGet.targets(42,9): error MSB3073: The command ""C:'Projects'playground.monodroid'ext'Simple.OData.Client'Solutions'.nuget'nuget.exe" install "C:'Projects'playground.monodroid'ext'Simple.OData.Client'Simple.OData.Client.Core'packages.config" -source "" -o "C:'Projects'playground.monodroid'ext'Simple.OData.Client'Solutions'packages"" exited with code 1.

Build failed. MSBuild operation failed

我想做的事情有可能吗?我知道Xamarin在那里有nuget支持,但我似乎找不到它…提前感谢

Simple.OData.Client + MonoDroid

我假设您使用的是Xamarin Studio。您可以按照此处的说明安装NuGet包管理外接程序:

https://github.com/mrward/monodevelop-nuget-addin