Removed nested objects from Microsoft User Secrets

This commit is contained in:
2024-05-21 07:37:43 -07:00
parent 878750b284
commit 26a28afe78
15 changed files with 61 additions and 904 deletions

View File

@ -126,7 +126,7 @@ internal class HelperNuget
}
if (string.IsNullOrEmpty(nugetConfiguration.KeyFileExtension))
continue;
fileInfo = new(file);
fileInfo = new(Path.ChangeExtension(file, nugetConfiguration.KeyFileExtension));
checkFileInfo = new(Path.Combine(nugetConfiguration.Destination, Path.ChangeExtension(fileInfo.Name, nugetConfiguration.KeyFileExtension)));
if (!checkFileInfo.Exists || fileInfo.LastWriteTime != checkFileInfo.LastWriteTime || fileInfo.Length != checkFileInfo.Length)
File.Copy(fileInfo.FullName, checkFileInfo.FullName, overwrite: true);