C# Windows Phone 8应用内购买错误

C# Windows Phone 8应用内购买错误,c#,windows-phone-8,windows-phone,in-app-purchase,C#,Windows Phone 8,Windows Phone,In App Purchase,在为WP8实现应用内购买时,我面临着一个非常奇怪的问题。我从一个标准模板创建了一个WP8解决方案,并开始执行以下操作,其中说明了开始检索产品的代码: // First, retrieve the list of some products by their IDs. ListingInformation listings = await CurrentApp.LoadListingInformationByProductIdsAsync(new string[] { "Bag of 50 gol

在为WP8实现应用内购买时,我面临着一个非常奇怪的问题。我从一个标准模板创建了一个WP8解决方案,并开始执行以下操作,其中说明了开始检索产品的代码:

// First, retrieve the list of some products by their IDs.
ListingInformation listings = await CurrentApp.LoadListingInformationByProductIdsAsync(new string[] { "Bag of 50 gold", "Bag of 100 gold" });
以下是我在测试解决方案中的使用方法:

IEnumerable<string> productIDs = new List<string>() {"Bag of 50 gold", "Bag of 100 gold"};
ListingInformation listings = await CurrentApp.LoadListingInformationByProductIdsAsync(productIDs);
IEnumerable productIDs=new List(){“50黄金袋”、“100黄金袋”};
ListingInformation listings=等待CurrentApp.LoadListingInformation ByProductIDAsync(ProductID);
以下是VS2012给我的错误:

我在下面键入了它,因为图像很难阅读:

'System.Collections.Generic.IEnumerable[mscorlib, 版本=2.0.5.0,区域性=中性,PublicKeyToken=7cec85d7bea7798e]“是 不可分配给参数类型 'System.Collections.Generic.IEnumerable[System.Runtime, 版本=4.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a]'

项目模板引用了“.NET for Windows Phone”和“Windows Phone”


我以前没有遇到过这样的错误,也没有通过搜索找到任何帮助。

这是一个重拾器问题。安装Resharper 8.2.1 RC()

是否使用Resharper?项目是否编译?@IgorKulman是的,我确实使用Resharper 8。该错误是一个Resharper错误,VS2012的错误列表中未报告该错误。@IgorKulman挂起Resharper后,错误消失,项目编译正常。谢谢你为我缩小了这个问题的范围。虽然目前我不知道如何让Resharper停止这种行为。当我暂停使用它时,VS2012突然变得更加难以使用:(