Select to view content in your preferred language

AddInContent Build Action Causes Project to Become Miscellaneous File

439
1
07-26-2022 12:10 PM
ManalSiddiqui
New Contributor II

So I am trying to re-create my project within Microsoft Visual Studio 2019 for ArcGIS Pro 2.8 project as my Add In does not work in 2.8 because the target framework is orginally for 2.9. I just created a new project and added all of the code/toolboxes/images needed for the project. The only thing is I need to set the Build Action for the Add-In Buttons to be 'AddInContent' from the default 'Compile'.  Like so :

Screen Shot 2022-07-26 at 3.06.41 PM.png

 

Screen Shot 2022-07-26 at 2.52.03 PM.png

However while doing so, the Project Name which is originally SkyWatch turns into Miscellaneous File like this and in doing that the buttons do not launch within Pro .

Screen Shot 2022-07-26 at 2.51.38 PM.pngScreen Shot 2022-07-26 at 2.51.59 PM.png

Any of the online forums suggestions do not fix this. If anyone has an idea of why this may be happening please let me know!

Thanks in advance.

 

 

0 Kudos
1 Reply
Wolf
by Esri Regular Contributor
Esri Regular Contributor

I think you misunderstood, only the button images (*.png files usually located in the images/darkimages folders) need to be set to build action "AddinContent", not the class files (*.cs) those need to be compiled.

0 Kudos