void GetNuspecPath() { var strings = Directory.GetFiles(PackageDirectory, "*.nuspec"); if (strings.Length != 1) { throw new ExpectedException(string.Format("Expected 1 .nuspec file in '{0}'.", PackageDirectory)); } nuspecPath = strings[0]; }