不能包添加到Linq2Twitter工作室Xamarin [英] Cannot add Linq2Twitter package to Xamarin Studio

查看:142
本文介绍了不能包添加到Linq2Twitter工作室Xamarin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图将Linq2Twitter的NuGet包添加到Xamarin Studio中,我得到以下错误:



找不到路径的一部分(..)/包/ linqtotwitter.3.1.1 / linqtotwitter.3.1.1.nupkg。



此前,包安装,但不能从我的代码引用。经过一些研究,我发现这是5月已经是与失踪PCL公司(支持http://lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/



下面安装单MDK(黑白开发工具包)后< A HREF =http://www.mono-project.com/download/相对=nofollow> http://www.mono-project.com/download/ ,我不再能。将包添加到我的项目



任何想法: - )


解决方案

有同样的问题多次,仅在Xamarin Studio的Mac上。问题是固定通过手动编辑packages.config有小写字母,而不是通过的NuGet提供的一个ID,无论是在PCL和iOS项目。



与入门基于ID然后将:



<预类=郎咸平的XML prettyprint-覆盖> <包ID =linqtotwitter版本=( ...)targetFramework =(...)/>

在讨论更多信息以@MattWard本主题中对方的回答


When trying to add the Linq2Twitter NuGet package to Xamarin Studio, I get the following error:

Could not find a part of the path "(..)/packages/linqtotwitter.3.1.1/linqtotwitter.3.1.1.nupkg".

Previously the package was installed but could not be reference from my code. After a bit of research I found that is may has something to do with missing support for PCL's (http://lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/)

After installing the mono MDK (Mono Development Kit) here http://www.mono-project.com/download/, I was no longer able to add the package to my project.

Any ideas :-)

解决方案

Had the same issue multiple times, only in Xamarin Studio on Mac. Issue was fixed by manually editing the packages.config to have the id in lowercase instead of the one provided by NuGet, both in PCL and iOS project..

The entry with based on id would then be:

<package id="linqtotwitter" version="(...)" targetFramework="(...)" />

More info in the discussion with the other answer in this topic of @MattWard

这篇关于不能包添加到Linq2Twitter工作室Xamarin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆