diff --git a/src/FastAccountSwitcher.CLI/FastAccountSwitcher.CLI.csproj b/src/FastAccountSwitcher.CLI/FastAccountSwitcher.CLI.csproj
index 6b832b1..959f954 100644
--- a/src/FastAccountSwitcher.CLI/FastAccountSwitcher.CLI.csproj
+++ b/src/FastAccountSwitcher.CLI/FastAccountSwitcher.CLI.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/src/FastAccountSwitcher.CLI/Services/PasswordService.cs b/src/FastAccountSwitcher.CLI/Services/PasswordService.cs
index 599dc7d..db27592 100644
--- a/src/FastAccountSwitcher.CLI/Services/PasswordService.cs
+++ b/src/FastAccountSwitcher.CLI/Services/PasswordService.cs
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
+using FastAccountSwitcher.CLI.Services;
+using System;
+using System.Runtime.InteropServices;
using System.Security;
using System.Security.Cryptography;
using System.Text.Json;
@@ -27,7 +29,20 @@ public void DeletePassword(string userName)
List credentials = ReadCredentials();
var credential = credentials.FirstOrDefault(c => c.UserName.Equals(userName, StringComparison.OrdinalIgnoreCase));
- return credential == null ? null : UnprotectPassword(credential.ProtectedPassword);
+ if(credential is null)
+ {
+ return null;
+ }
+
+ try
+ {
+ return UnprotectPassword(credential.ProtectedPassword);
+ }
+ catch (Exception ex)
+ {
+ LoggingService.LogException(ex);
+ return null;
+ }
}
public void SetPassword(string userName, SecureString password)
diff --git a/src/FastAccountSwitcher.GUI/FastAccountSwitcher.GUI.csproj b/src/FastAccountSwitcher.GUI/FastAccountSwitcher.GUI.csproj
index c3dbff8..bea6fc2 100644
--- a/src/FastAccountSwitcher.GUI/FastAccountSwitcher.GUI.csproj
+++ b/src/FastAccountSwitcher.GUI/FastAccountSwitcher.GUI.csproj
@@ -24,13 +24,13 @@
-
+
-
+
diff --git a/src/FastAccountSwitcher.Setup/FastAccountSwitcher.Setup.vdproj b/src/FastAccountSwitcher.Setup/FastAccountSwitcher.Setup.vdproj
index 86df592..144358f 100644
--- a/src/FastAccountSwitcher.Setup/FastAccountSwitcher.Setup.vdproj
+++ b/src/FastAccountSwitcher.Setup/FastAccountSwitcher.Setup.vdproj
@@ -276,15 +276,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Fast Account Switcher"
- "ProductCode" = "8:{708AAD1D-DA2F-43BF-898D-33C60295ABFE}"
- "PackageCode" = "8:{F847DC99-9928-4DE0-9DEB-1A2D06CA07B0}"
+ "ProductCode" = "8:{4830A848-CD75-439E-BE22-90DF1A83F5D2}"
+ "PackageCode" = "8:{AF8CAB13-6D86-4677-806A-487FCF4DACFA}"
"UpgradeCode" = "8:{3BB84402-A6C5-4543-AAA0-9CD8D42E26C2}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
- "ProductVersion" = "8:1.0.0"
+ "ProductVersion" = "8:1.1.0"
"Manufacturer" = "8:Patrick Demichiel"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"