Merge pull request #38 from christianrondeau/clearer-error-messages

Clearer error message when no framework is provided in the nupkg file
This commit is contained in:
Paul Betts
2014-09-16 20:06:46 -07:00

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();