<?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 How to build ArcGIS Pro Configuration Solution via Command Line? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1245402#M9233</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows, net6.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Trying to setup Jenkins job to build ArcGIS Pro Configuration project. The solution compile successfully using Visual Studio 2022 but it fails to build the same solution via command line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to replicate:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(a) Start Visual Studio and create an Add-In project&lt;BR /&gt;(b) Build through Visual Studio menu&lt;BR /&gt;(c) It builds fine&lt;BR /&gt;(d) Open a command prompt in the same folder where solution (.sln) file exists&lt;BR /&gt;(e) Run the following command to build the solution:&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;dotnet build {addin-solution}.sln&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;(f) Error occurs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;"Error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild"&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 19:26:02 GMT</pubDate>
    <dc:creator>vijayk</dc:creator>
    <dc:date>2023-01-04T19:26:02Z</dc:date>
    <item>
      <title>How to build ArcGIS Pro Configuration Solution via Command Line?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1245402#M9233</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows, net6.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Trying to setup Jenkins job to build ArcGIS Pro Configuration project. The solution compile successfully using Visual Studio 2022 but it fails to build the same solution via command line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to replicate:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(a) Start Visual Studio and create an Add-In project&lt;BR /&gt;(b) Build through Visual Studio menu&lt;BR /&gt;(c) It builds fine&lt;BR /&gt;(d) Open a command prompt in the same folder where solution (.sln) file exists&lt;BR /&gt;(e) Run the following command to build the solution:&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;dotnet build {addin-solution}.sln&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;(f) Error occurs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;"Error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild"&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 19:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1245402#M9233</guid>
      <dc:creator>vijayk</dc:creator>
      <dc:date>2023-01-04T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to build ArcGIS Pro Configuration Solution via Command Line?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1245446#M9234</link>
      <description>&lt;P&gt;The reason dotnet build won't work is because the&amp;nbsp;Esri.ProApp.SDK.Desktop.targets file uses CodeTaskFactory for the in-line tasks that package the esriAddinX file. To support dotnet build, Esri would need to change these to use RoslynCodeTaskFactory which is the logical successor to CodeTaskFactory. I've done as much on my local machine and it has worked well, but it is only a workaround.&lt;/P&gt;&lt;P&gt;I'd second the request to support this workflow now that Pro AddIns are written against .NET 6, particularly in the SDK nuget package.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 21:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1245446#M9234</guid>
      <dc:creator>DanielRouleau</dc:creator>
      <dc:date>2023-01-04T21:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to build ArcGIS Pro Configuration Solution via Command Line?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1246011#M9253</link>
      <description>&lt;P&gt;Esri helped to find the solution for this problem.&lt;/P&gt;&lt;P&gt;The ArcGIS Pro solution can be built using MSBuild. "&lt;STRONG&gt;MSBuild.exe MySolution.sln -t:rebuild&lt;/STRONG&gt;"&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2022" target="_blank"&gt;MSBuild Command-Line Reference - MSBuild | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;For VS2022, the correct msbuild path is C:\Program Files\Microsoft Visual Studio\2022\xxx\MSBuild\Current\Bin&lt;/LI&gt;&lt;LI&gt;The difference between the MSBuild and donot build, please find below link:&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/66349892/whats-the-difference-between-using-dotnet-and-msbuild-for-building-net-applica" target="_blank"&gt;c# - What's the difference between using dotnet and MSBuild for building .NET applications? - Stack Overflow&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1246011#M9253</guid>
      <dc:creator>vijayk</dc:creator>
      <dc:date>2023-01-06T14:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to build ArcGIS Pro Configuration Solution via Command Line?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1554488#M12254</link>
      <description>&lt;P&gt;FYI, I've created an Idea to move to `dotnet build`. Feel free to Kudo it so Esri knows that devs really want it. &lt;A href="https://community.esri.com/t5/developers-ideas/enable-dotnet-build-for-arcgis-pro-add-ins-and/idi-p/1361198" target="_blank"&gt;https://community.esri.com/t5/developers-ideas/enable-dotnet-build-for-arcgis-pro-add-ins-and/idi-p/1361198&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 19:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-build-arcgis-pro-configuration-solution-via/m-p/1554488#M12254</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2024-10-31T19:47:06Z</dc:date>
    </item>
  </channel>
</rss>

