<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Addin with ArcGIS Pro 3.3 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1477539#M11576</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used a plugin in ArcGIS Pro 3.2, and after migrating it to ArcGIS Pro 3.3, my esriaddinx plugin no longer worked. When I examined the source code, I noticed a new error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Error message : "Gravité Code Description Projet Fichier Ligne État de la suppression&lt;BR /&gt;Erreur CS0508 'ShowCoordinatesTool.HandleMouseDownAsync(MapViewMouseButtonEventArgs)'&amp;nbsp;: le type de retour doit être '&lt;STRONG&gt;Task&lt;/STRONG&gt;' pour correspondre au membre substitué"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in English (translated) : "&lt;/SPAN&gt;&lt;SPAN&gt;Severity Code Description Project File Line Deletion Status Error CS0508 'ShowCoordinatesTool.&lt;STRONG&gt;HandleMouseDownAsync&lt;/STRONG&gt;(MapViewMouseButtonEventArgs)': return type must be '&lt;STRONG&gt;Task&lt;/STRONG&gt;' to match overridden member."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you notice the same issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....//Get the instance of the ViewModel&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....var vm = OverlayEmbeddableControl as EmbeddedControlViewModel;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....if (vm == null)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........return Task.FromResult(0); //changé le 23/05/2024 pour test&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........//return Task.CompletedTask;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....//Get the map coordinates from the click point and set the property on the ViewModel.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....return QueuedTask.Run(() =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var mapPoint = ActiveMapView.ClientToMap(e.ClientPoint);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var coords = GeometryEngine.Instance.Project(mapPoint, SpatialReferences.WGS84) as MapPoint;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........if (coords == null) return;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var camera = ActiveMapView.Camera;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var sb = new StringBuilder();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var zoom = calculateZoom(96,Convert.ToInt32(camera.Scale),(float)coords.X,1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........zoom = 100;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........vm.Text = sb.ToString();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........string YXZcoordinates = coords.Y.ToString().Replace(",", ".") + "," + coords.X.ToString().Replace(",", ".") + "," + zoom.ToString()+"m";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrgoireCATINEAU_0-1716479781267.png" style="width: 789px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105149iB5B63F099F1A59B2/image-dimensions/789x267?v=v2" width="789" height="267" role="button" title="GrgoireCATINEAU_0-1716479781267.png" alt="GrgoireCATINEAU_0-1716479781267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 15:56:33 GMT</pubDate>
    <dc:creator>GregoireCatineau</dc:creator>
    <dc:date>2024-05-23T15:56:33Z</dc:date>
    <item>
      <title>Addin with ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1477539#M11576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used a plugin in ArcGIS Pro 3.2, and after migrating it to ArcGIS Pro 3.3, my esriaddinx plugin no longer worked. When I examined the source code, I noticed a new error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Error message : "Gravité Code Description Projet Fichier Ligne État de la suppression&lt;BR /&gt;Erreur CS0508 'ShowCoordinatesTool.HandleMouseDownAsync(MapViewMouseButtonEventArgs)'&amp;nbsp;: le type de retour doit être '&lt;STRONG&gt;Task&lt;/STRONG&gt;' pour correspondre au membre substitué"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in English (translated) : "&lt;/SPAN&gt;&lt;SPAN&gt;Severity Code Description Project File Line Deletion Status Error CS0508 'ShowCoordinatesTool.&lt;STRONG&gt;HandleMouseDownAsync&lt;/STRONG&gt;(MapViewMouseButtonEventArgs)': return type must be '&lt;STRONG&gt;Task&lt;/STRONG&gt;' to match overridden member."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you notice the same issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....//Get the instance of the ViewModel&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....var vm = OverlayEmbeddableControl as EmbeddedControlViewModel;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....if (vm == null)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........return Task.FromResult(0); //changé le 23/05/2024 pour test&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........//return Task.CompletedTask;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....//Get the map coordinates from the click point and set the property on the ViewModel.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....return QueuedTask.Run(() =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var mapPoint = ActiveMapView.ClientToMap(e.ClientPoint);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var coords = GeometryEngine.Instance.Project(mapPoint, SpatialReferences.WGS84) as MapPoint;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........if (coords == null) return;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var camera = ActiveMapView.Camera;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var sb = new StringBuilder();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........var zoom = calculateZoom(96,Convert.ToInt32(camera.Scale),(float)coords.X,1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........zoom = 100;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........vm.Text = sb.ToString();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;........string YXZcoordinates = coords.Y.ToString().Replace(",", ".") + "," + coords.X.ToString().Replace(",", ".") + "," + zoom.ToString()+"m";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrgoireCATINEAU_0-1716479781267.png" style="width: 789px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105149iB5B63F099F1A59B2/image-dimensions/789x267?v=v2" width="789" height="267" role="button" title="GrgoireCATINEAU_0-1716479781267.png" alt="GrgoireCATINEAU_0-1716479781267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1477539#M11576</guid>
      <dc:creator>GregoireCatineau</dc:creator>
      <dc:date>2024-05-23T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Addin with ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1478532#M11583</link>
      <description>&lt;P&gt;I cannot duplicate your issue.&amp;nbsp; &amp;nbsp;When you say you migrated your add-in to 3.3 did you upgrade your project to target .NET 8.0?&amp;nbsp; I have a 3.1 add-in with a MapTool that also is using the HandleMouseDownAsync&amp;nbsp; overrise and it worked fine under 3.3.&amp;nbsp; &amp;nbsp;When i migrated the project to ArcGIS Pro 3.3 i get the following when i hover over the HandleMouseDownAsync override:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1716570162789.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105343i8A3D78A3D8AE30BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1716570162789.png" alt="Wolf_0-1716570162789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also can you check the definition for Task?&amp;nbsp; It should be defined as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1716570650659.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105346i66695EB143C01F8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1716570650659.png" alt="Wolf_1-1716570650659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1478532#M11583</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2024-05-24T17:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Addin with ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1479131#M11586</link>
      <description>&lt;P&gt;I resolved this problem by changing of the .NET version 6 to 8 in the .csporj file of the old vs addin project&lt;/P&gt;&lt;P&gt;&amp;lt;TargetFramework&amp;gt;net6.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;lt;TargetFramework&amp;gt;net8.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 16:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/addin-with-arcgis-pro-3-3/m-p/1479131#M11586</guid>
      <dc:creator>GregoireCatineau</dc:creator>
      <dc:date>2024-05-27T16:01:01Z</dc:date>
    </item>
  </channel>
</rss>

