2011-10-15 34 views
0

我创建了一个新的Windows Phone应用程序并添加了linqToTwitter包。这增加了对LinqToTwitterAg的引用,但是我无法开始使用TwitterContext或类似的东西,也无法添加'使用LinqToTwitterAg'或'使用LinqToTwitter'。 LinqToTwitter不适合Windows Phone应用程序吗?linqToTwitter和Windows Phone项目

回答

1

当我试图通过的NuGet安装LinqToTwitter包,我得到了以下错误:

Successfully installed 'LinqToTwitter 2.0.21'.
Successfully uninstalled 'LinqToTwitter 2.0.21'.
Install failed. Rolling back...
Could not install package 'LinqToTwitter 2.0.21'.
You are trying to install this package into a project that targets Silverlight,Version=v4.0,Profile=WindowsPhone71', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.

我的建议是要深入到包的作者,看看他能为你创造一个pacakge与Windows Phone 7.1框架兼容,或者亲自获取源代码并尝试将其融入到您的解决方案中。