mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2025-12-06 17:15:42 -08:00
Warn about old .Net version if methods are missing
This commit is contained in:
@@ -996,7 +996,13 @@ public class Setup {
|
||||
WriteLine();
|
||||
WriteLine($"Unexpected error: {e.Message}");
|
||||
Log(e.ToString());
|
||||
WriteLine("If this is the most current release, please report this bug.");
|
||||
if (e is MissingMemberException || e is TypeLoadException) {
|
||||
WriteLine("This installer requires a recent version of .Net Framework.");
|
||||
WriteLine("Use Windows Update or download manually:");
|
||||
WriteLine("https://dotnet.microsoft.com/en-us/download/dotnet-framework");
|
||||
} else {
|
||||
WriteLine("If this is the most current release, please report this bug.");
|
||||
}
|
||||
return 1;
|
||||
} finally {
|
||||
if (DryRun) {
|
||||
|
||||
Reference in New Issue
Block a user