Disable unreachable code detection on file level
MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -19,6 +19,7 @@ namespace WalletWasabi.Packager
{
public class Program
{
+#pragma warning disable CS0162 // Unreachable code detected
// 0. Dump Client version (or else wrong .msi will be created) - Helpers.Constants.ClientVersion
// 1. Publish with Packager.
// 2. Build WIX project with Release and x64 configuration.
@@ -99,16 +100,12 @@ namespace WalletWasabi.Packager
{
if (DoSign)
{
-#pragma warning disable CS0162 // Unreachable code detected
Sign();
-#pragma warning restore CS0162 // Unreachable code detected
}
if (DoRestoreProgramCs)
{
-#pragma warning disable CS0162 // Unreachable code detected
RestoreProgramCs();
-#pragma warning restore CS0162 // Unreachable code detected
}
}
}
@@ -894,5 +891,7 @@ namespace WalletWasabi.Packager
}
}
}
+
+#pragma warning restore CS0162 // Unreachable code detected
}
}

Disable unreachable code detection on file level