<?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 Any Suggestion On Setting Up Unit Test Project to Test ArcPro AddIn Library in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1425869#M11504</link>
    <description>&lt;P&gt;How to set up&amp;nbsp;Unit Test Project to test a ArcPro AddIn project? MsTest is also fine. Also would like to integrate Moq.&lt;BR /&gt;&lt;BR /&gt;So far:&lt;BR /&gt;Added an NUnit test project to the solution and referenced the addin project. Wouldn't compile so opened the test project csproj file and changed&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;TargetFramework&amp;gt;net6.0&amp;lt;/TargetFramework&amp;gt; to&lt;BR /&gt;&amp;lt;TargetFramework&amp;gt;net6.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Now it compiles, but when running a unit test, get the following error:&lt;BR /&gt;&lt;BR /&gt;System.IO.FileNotFoundException : Could not load file or assembly 'ArcGIS.Desktop.Framework, Version=13.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;Both the addin project and the test project have&amp;nbsp;&amp;lt;PlatformTarget&amp;gt;x64&amp;lt;/PlatformTarget&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Is this a license issue? Have Named User License.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 23:09:36 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2024-05-09T23:09:36Z</dc:date>
    <item>
      <title>Any Suggestion On Setting Up Unit Test Project to Test ArcPro AddIn Library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1425869#M11504</link>
      <description>&lt;P&gt;How to set up&amp;nbsp;Unit Test Project to test a ArcPro AddIn project? MsTest is also fine. Also would like to integrate Moq.&lt;BR /&gt;&lt;BR /&gt;So far:&lt;BR /&gt;Added an NUnit test project to the solution and referenced the addin project. Wouldn't compile so opened the test project csproj file and changed&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;TargetFramework&amp;gt;net6.0&amp;lt;/TargetFramework&amp;gt; to&lt;BR /&gt;&amp;lt;TargetFramework&amp;gt;net6.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Now it compiles, but when running a unit test, get the following error:&lt;BR /&gt;&lt;BR /&gt;System.IO.FileNotFoundException : Could not load file or assembly 'ArcGIS.Desktop.Framework, Version=13.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;Both the addin project and the test project have&amp;nbsp;&amp;lt;PlatformTarget&amp;gt;x64&amp;lt;/PlatformTarget&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Is this a license issue? Have Named User License.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 23:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1425869#M11504</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-05-09T23:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Any Suggestion On Setting Up Unit Test Project to Test ArcPro AddIn Library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1428506#M11506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Esri recommends MSTest type project for unit testing. Have you looked at &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing" target="_self"&gt;Regression testing documentation&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;I would recommend delete all ArcGIS Pro references from test project and add&amp;nbsp;Esri.ArcGISPro.Extensions30 package instead.&lt;/P&gt;&lt;P&gt;Some interesting stuff you can found &lt;A href="https://www.dankuida.com/lessons-in-arcgis-pro-sdk-development-16599d2d0190" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 05:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1428506#M11506</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-05-10T05:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Any Suggestion On Setting Up Unit Test Project to Test ArcPro AddIn Library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1463950#M11526</link>
      <description>&lt;P&gt;Above post referring to the guide&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing" target="_self" rel="nofollow noopener noreferrer"&gt;Regression testing documentation&lt;/A&gt;&lt;BR /&gt;worked for me. However, these things had to be changed for me (working with vs2022 community edition.)&lt;BR /&gt;&lt;BR /&gt;Do not&amp;nbsp;delete/replace in the test project's *.csproj file, the entry:&lt;BR /&gt;&amp;lt;RootNamespace&amp;gt;...&amp;lt;/RootNamespace&amp;gt;&lt;BR /&gt;(This will prevent the project from compiling...)&lt;BR /&gt;&lt;BR /&gt;Also do not copy over:&lt;BR /&gt;&amp;lt;Platforms&amp;gt;x64&amp;lt;/Platforms&amp;gt;&lt;BR /&gt;&amp;lt;PlatformTarget&amp;gt;x64&amp;lt;/PlatformTarget&amp;gt;&lt;BR /&gt;to your test project&amp;nbsp;*.csproj file.&lt;BR /&gt;&lt;BR /&gt;This prevented the tests from running.&lt;BR /&gt;&lt;BR /&gt;Other parts of the guide can be followed...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 05:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1463950#M11526</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-05-14T05:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Any Suggestion On Setting Up Unit Test Project to Test ArcPro AddIn Library</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1551108#M12206</link>
      <description>&lt;P&gt;Thank you so much for this... was wondering why my tests wouldn't run with the documentation guidelines.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 21:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-project-to/m-p/1551108#M12206</guid>
      <dc:creator>ARWES24</dc:creator>
      <dc:date>2024-10-22T21:27:21Z</dc:date>
    </item>
  </channel>
</rss>

