Environment:
Windows, net6.0
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.
Steps to replicate:
(a) Start Visual Studio and create an Add-In project
(b) Build through Visual Studio menu
(c) It builds fine
(d) Open a command prompt in the same folder where solution (.sln) file exists
(e) Run the following command to build the solution:
dotnet build {addin-solution}.sln
(f) Error occurs
"Error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild"