Clearer error message when no framework is provided in the application .nupkg file (when running squirrel --releasify)

This commit is contained in:
Christian Rondeau
2014-09-16 21:38:52 -04:00
parent e72e485b0c
commit 794cb3f602

View File

@@ -107,6 +107,11 @@ namespace Squirrel
throw new InvalidOperationException(String.Format(
"The input package file {0} targets multiple platforms - {1} - and cannot be transformed into a release package.", InputPackageFile, platforms));
} else if (!frameworks.Any()) {
throw new InvalidOperationException(String.Format(
"The input package file {0} targets no platform and cannot be transformed into a release package.", InputPackageFile));
}
var targetFramework = frameworks.Single();