我正在努力为我的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在那里得到了支持,但我似乎无法找到它...提前谢谢你
答案 0 :(得分:2)
我假设你正在使用Xamarin Studio。您可以按照此处的说明安装NuGet Package Management Add-in: