Hello,
I have a toolbar Addin which stopped working once we moved from Visual Studio 2017 to VS 2019. It basically sends all features over to another photogrammetry software package for editing and then sends them back. After I rebuilt it, it stopped sending over features. I'm trying to debug it, but was wondering if anyone else has had this issue.
The output from the build is below. The target was AnyCPU, which caused the first 4 warnings. I changed it to 64 bit, which eliminated those warnings, but to no avail. It still doesn't work.
Rebuild started...
1>------ Rebuild All started: Project: SfaProClient, Configuration: Debug Any CPU ------
1> Clean Addin...
1> Execute RegisterAddIn.exe "{97281cd9-589c-421b-8106-95484b67c7b7}" /u...
1>C:\TrustedApps\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ArcGIS.Desktop.Catalog", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\TrustedApps\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ArcGIS.Desktop.Core", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\TrustedApps\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ArcGIS.Desktop.Framework", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\TrustedApps\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ArcGIS.Desktop.GeoProcessing", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>C:\TrustedApps\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2203,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ArcGIS.Desktop.Mapping", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1> SfaProClient -> V:\Repos\socetgxp\BuildOut\Config\Esri\SfaProClient.dll
1> ZipIntermediatePath Name: obj\Debug\temp_archive\...
1> IntermediateOutputPath Name: obj\Debug\...
1> CleanFile Name: SfaProClient.csproj.FileListAbsolute.txt...
1> ProjectDir Name: V:\Repos\socetgxp\tap_source\CscSrc\SfaCap\SfaProClient\...
1> AssemblyName Name: SfaProClient...
1> TargetFileName Name: SfaProClient.dll...
1> RootNamespace: SfaProClient...
1> TargetFolder Name: ..\..\..\..\BuildOut\Config\Esri\...
1> PackageType Name: Addin...
1> Install dir: C:\Program Files\ArcGIS\Pro\
1> RelativePaths: SfaProClient.dll
1> RelativePaths: SfaProClient.pdb
1> ConvertToRelativePath Task, TargetDir: V:\Repos\socetgxp\BuildOut\Config\Esri\
1> Deploying Addin...
1> ArcGISFolder Name: C:\Program Files\ArcGIS\Pro\...
1> Execute RegisterAddIn.exe "V:\Repos\socetgxp\BuildOut\Config\Esri\SfaProClient.esriAddinX" /s...
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Thanks in advance,
-Bill