Hi, I have a piece of code that worked in 2.3 but failed in 2.4 with the following error,
Method not found at ArcGIS.Desktop.Core.ClipboardItem.get_ItemInfoValue().
Everything compile fine and I can confirm the following code
public ItemInfoValue ItemInfoValue { get; set; }
in the ClipboardItem class. My Pro SDK version is 2.4.0.19948.
I check the ArcGIS.Desktop.Core reference -> C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll which points to my ArcGIS pro 2.4 install.
I am wondering if I have a mismatch in reference against pro somehow. I have also tried clean/rebuild. Any advise is much appreciated.
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>dropInfo<SPAN class="punctuation token">.</SPAN>Data <SPAN class="keyword token">is</SPAN> List<SPAN class="operator token"><</SPAN>ClipboardItem<SPAN class="operator token">></SPAN> clipboardItems<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">foreach</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> item <SPAN class="keyword token">in</SPAN> clipboardItems<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">var</SPAN> thisItem <SPAN class="operator token">=</SPAN> item<SPAN class="punctuation token">;</SPAN>
data_path <SPAN class="operator token">=</SPAN> thisItem<SPAN class="punctuation token">.</SPAN>ItemInfoValue<SPAN class="punctuation token">.</SPAN>catalogPath<SPAN class="punctuation token">;</SPAN><SPAN class="comment token">//thisItem.CatalogPath;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>