疑似セレクター :first を使用する場合、いくつかの例外が発生し始めました。これは、Visual Studio でターゲット フレームワークを 4 から 4.5.1 に変更したときに発生し始めました。同じコードがエラーなしで以前に実行されました。CsQuery を使用する他のすべては、正常に機能し続けているようです。
私のプロジェクト参照には CsQuery.1.3.5.124 がありますが、バグである可能性があります。以前はうまくいきました。
助けはありますか?
ありがとう。
そこには
Stack trace:
[ArgumentException: The key already existed in the dictionary.]
System.Collections.Concurrent.ConcurrentDictionary`2.System.Collections.Generic.IDictionary<TKey,TValue>.Add(TKey key, TValue value) +10940468
CsQuery.Engine.PseudoSelectors.PopulateFromAssembly(Assembly assy, String[] nameSpaces) +344
CsQuery.Engine.PseudoSelectors.Register(Assembly assembly) +153
CsQuery.Engine.PseudoSelectors.PopulateInnerSelectors() +305
CsQuery.Engine.PseudoSelectors..ctor() +168
CsQuery.Engine.PseudoSelectors..cctor() +44
[TypeInitializationException: The type initializer for 'CsQuery.Engine.PseudoSelectors' threw an exception.]
CsQuery.Engine.PseudoSelectors.get_Items() +0
CsQuery.Engine.SelectorParser.AddPseudoSelector(String key) +49
CsQuery.Engine.SelectorParser.Parse(String selector) +2360
CsQuery.Engine.Selector..ctor(String selector) +103
CsQuery.CQ.Select(String selector) +83
CsQuery.CQ.get_Item(String selector) +42