Ok, I guess I never got this sorted out or cant remember how to preserve the app_data folder when using a publish profile from within vs. Have a older webforms project using vs 2019 and published to a folder on a server using a unc path. Works fine, but I need to not overwrite the app_data folder.
In the publish profile there are a few options such as
delete exsting files
exclude files in app_data
If I want the app_data folder left intact on the target, then should I not use delete existing files? Trying that, even with exclude files from app_data, the app_data folder is still deleted. Only if I uncheck "delete existing files" does app_data on the target stay intact.