"Set Files to never overwrite"
$nonoverwritefiles = $advproj.FilesComponent.Files.Where({ $_.Name -eq "appsettings.json" -or $_.Name -eq "config.json"})
foreach ($file in $nonoverwritefiles) {
"Set NeverOverwrite for $($file.FullPath)"
$file.OverwriteType = "no"
}
fixed it
the changed had to ...
FOLLOW US
Get the latest news in Application Packaging