I want to save some custom project settings (see ProGuide Custom settings · Esri/arcgis-pro-sdk Wiki · GitHub ). When I manually save the project, the function "OnWriteSettingsAsync()" is called. However, when I programmatically save the project using "Project.Current.SaveAsync()", the function "OnWriteSettingsAsync()" is not called.
Is there a workaround for this?
Solved! Go to Solution.
I modified the sample project referenced in that wiki page to save a project using the SaveAsync method. The OnWriteSettingsAsync method was called for me.
Is there anything specific about how you are calling SaveAsync?