I am trying to update my Addin from ArcObject 10.3 to 10.5 using VS2015 .net 5.2 Frame work but I am getting Error
CS1752: CS1752 Interop type 'PointClass' cannot be embedded. Use the applicable interface instead.)
<SPAN class="comment token">// Get selected line segments end points</SPAN>
pPolyline <SPAN class="operator token">=</SPAN> pFeature<SPAN class="punctuation token">.</SPAN>Shape <SPAN class="keyword token">as</SPAN> IPolyline<SPAN class="punctuation token">;</SPAN>
IPoint pOutPoint <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">PointClass</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// Convert screen coordinates to Map coordinates</SPAN>
<SPAN class="comment token">//pPoint = ;</SPAN>
pMxApp <SPAN class="operator token">=</SPAN> pApp <SPAN class="keyword token">as</SPAN> IMxApplication<SPAN class="punctuation token">;</SPAN>
pPoint <SPAN class="operator token">=</SPAN> pMxApp<SPAN class="punctuation token">.</SPAN>Display<SPAN class="punctuation token">.</SPAN>DisplayTransformation<SPAN class="punctuation token">.</SPAN><SPAN class="token function">ToMapPoint</SPAN><SPAN class="punctuation token">(</SPAN>X<SPAN class="punctuation token">,</SPAN> Y<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>
and same Error here as Well.
<SPAN class="comment token">//Get normal</SPAN>
ILine pTangent <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">LineClass</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
pPolyline<SPAN class="punctuation token">.</SPAN><SPAN class="token function">QueryTangent</SPAN><SPAN class="punctuation token">(</SPAN>esriSegmentExtension<SPAN class="punctuation token">.</SPAN>esriExtendTangentAtFrom<SPAN class="punctuation token">,</SPAN> FromDist<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">100.0</SPAN><SPAN class="punctuation token">,</SPAN> pTangent<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I do appreciate any help or hint
Husham