Select to view content in your preferred language

The changes of code dont see in the ArcGIS Pro

939
3
Jump to solution
03-07-2023 11:29 AM
IngJuanMaSuarez
Esri Contributor

Hi everyone.

I have a problem with SDK version 3.0. I can create a project using the template without problem, and run the project from Visual Studio Community 2022. This, open ArcGIS Pro and i can see the add-in.

After this, i make changes int he code, run the project and this changes don't show up in ArcGIS Pro. In ArcGIS Pro only see the first version of the project, but not the changes.

Can anyone help me please?

0 Kudos
1 Solution

Accepted Solutions
RichardDaniels
Frequent Contributor

Two things to check.

1. in your Config.daml did you update the DATE prior to your (re)build? ArcGIS Pro will only reload an Add-in into the cache if the date has been changed in this file.

RichardDaniels_0-1678217962696.png

 

2. delete all files from your solutions folder in the.\bin directory. This is where your build results are saved; if you click into the folders, you should see a Debug, Release folder then a net6.0-windows folder that contains the actual compiled Add-in.

Richard

View solution in original post

3 Replies
RichardDaniels
Frequent Contributor

Two things to check.

1. in your Config.daml did you update the DATE prior to your (re)build? ArcGIS Pro will only reload an Add-in into the cache if the date has been changed in this file.

RichardDaniels_0-1678217962696.png

 

2. delete all files from your solutions folder in the.\bin directory. This is where your build results are saved; if you click into the folders, you should see a Debug, Release folder then a net6.0-windows folder that contains the actual compiled Add-in.

Richard

IngJuanMaSuarez
Esri Contributor

Thanks RichardDaniels!

The second options is the solutions. Now i have another question. ¿Do i always have to delete the contents in the.\bin directory when i make any changes?

Thanks a lot!

0 Kudos
RichardDaniels
Frequent Contributor

No, if you update the Config.daml date and have edited at least one form or module it should work. However, if it does not then you need to do a Clean Solution | Rebuild Solution to pick-up your changes.

Visual Studio 2019 was better than 2022 in doing complete builds. VS 2022 try's to be Smart and will not rebuild a file if it thinks the Resources have not changed. Unfortunately, for an ArcGIS Pro Add-In this does not result in the desired behavior.