[msbuild] Add error codes for PropertyListEditorTaskBase (#1325)

* [msbuild] Add error codes for PropertyListEditorTaskBase

* [msbuild] Add task names in all errors' descriptions
This commit is contained in:
Vincent Dondain 2016-12-12 04:30:42 -05:00 коммит произвёл Rolf Bjarne Kvinge
Родитель b16265593c
Коммит 887a410fe2
3 изменённых файлов: 263 добавлений и 48 удалений

Просмотреть файл

@ -1438,6 +1438,8 @@ A security error ocurred while stripping debugging symbols from the application.
<h3><a name="MT7001"/>MT7001: Could not resolve host IPs for WiFi debugger settings.</h3>
*MSBuild task: DetectDebugNetworkConfigurationTaskBase*
Troubleshooting steps:
- try to run `csharp -e 'System.Net.Dns.GetHostEntry (System.Net.Dns.GetHostName ()).AddressList'` (that should give you an IP address and not an error obviously).
@ -1447,90 +1449,280 @@ In some cases, it's a "local network" issue and it can be addressed by adding th
<h3><a name="MT7002"/>MT7002: This machine does not have any network adapters. This is required when debugging or profiling on device over WiFi.</h3>
*MSBuild task: DetectDebugNetworkConfigurationTaskBase*
<h3><a name="MT7003"/>MT7003: The App Extension '*' does not contain an Info.plist.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7004"/>MT7004: The App Extension '*' does not specify a CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7005"/>MT7005: The App Extension '*' does not specify a CFBundleExecutable.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7006"/>MT7006: The App Extension '*' has an invalid CFBundleIdentifier (*), it does not begin with the main app bundle's CFBundleIdentifier (*).</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7007"/>MT7007: The App Extension '*' has a CFBundleIdentifier (*) that ends with the illegal suffix ".key".</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7008"/>MT7008: The App Extension '*' does not specify a CFBundleShortVersionString.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7009"/>MT7009: The App Extension '*' has an invalid Info.plist: it does not contain an NSExtension dictionary.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7010"/>MT7010: The App Extension '*' has an invalid Info.plist: the NSExtension dictionary does not contain an NSExtensionPointIdentifier value.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7011"/>MT7011: The WatchKit Extension '*' has an invalid Info.plist: the NSExtension dictionary does not contain an NSExtensionAttributes dictionary.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7012"/>MT7012: The WatchKit Extension '*' does not have exactly one watch app.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7013"/>MT7013: The WatchKit Extension '*' has an invalid Info.plist: UIRequiredDeviceCapabilities must contain the 'watch-companion' capability.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7014"/>MT7014: The Watch App '*' does not contain an Info.plist.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7015"/>MT7015: The Watch App '*' does not specify a CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7016"/>MT7016: The Watch App '*' has an invalid CFBundleIdentifier (*), it does not begin with the main app bundle's CFBundleIdentifier (*).</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7017"/>MT7017: The Watch App '*' does not have a valid UIDeviceFamily value. Expected 'Watch (4)' but found '* (*)'.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7018"/>MT7018: The Watch App '*' does not specify a CFBundleExecutable</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7019"/>MT7019: The Watch App '*' has an invalid WKCompanionAppBundleIdentifier value ('*'), it does not match the main app bundle's CFBundleIdentifier ('*').</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7020"/>MT7020: The Watch App '*' has an invalid Info.plist: the WKWatchKitApp key must be present and have a value of 'true'.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7021"/>MT7021: The Watch App '*' has an invalid Info.plist: the LSRequiresIPhoneOS key must not be present.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7022"/>MT7022: The Watch App '*' does not contain a Watch Extension.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7023"/>MT7023: The Watch Extension '*' does not contain an Info.plist.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7024"/>MT7024: The Watch Extension '*' does not specify a CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7025"/>MT7025: The Watch Extension '*' does not specify a CFBundleExecutable.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7026"/>MT7026: The Watch Extension '*' has an invalid CFBundleIdentifier (*), it does not begin with the main app bundle's CFBundleIdentifier (*).</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7027"/>MT7027: The Watch Extension '*' has a CFBundleIdentifier (*) that ends with the illegal suffix ".key".</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7028"/>MT7028: The Watch Extension '*' has an invalid Info.plist: it does not contain an NSExtension dictionary.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7029"/>MT7029: The Watch Extension '*' has an invalid Info.plist: the NSExtensionPointIdentifier must be "com.apple.watchkit".</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7030"/>MT7030: The Watch Extension '*' has an invalid Info.plist: the NSExtension dictionary must contain NSExtensionAttributes.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7031"/>MT7031: The Watch Extension '*' has an invalid Info.plist: the NSExtensionAttributes dictionary must contain a WKAppBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7032"/>MT7032: The WatchKit Extension '*' has an invalid Info.plist: UIRequiredDeviceCapabilities should not contain the 'watch-companion' capability.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7033"/>MT7033: The Watch App '*' does not contain an Info.plist.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7034"/>MT7034: The Watch App '*' does not specify a CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7035"/>MT7035: The Watch App '*' does not have a valid UIDeviceFamily value. Expected '*' but found '* (*)'.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7036"/>MT7036: The Watch App '*' does not specify a CFBundleExecutable.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7037"/>MT7037: The WatchKit Extension '{extensionName}' has an invalid WKAppBundleIdentifier value ('*'), it does not match the Watch App's CFBundleIdentifier ('*').</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7038"/>MT7038: The Watch App '*' has an invalid Info.plist: the WKCompanionAppBundleIdentifier must exist and must match the main app bundle's CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7039"/>MT7039: The Watch App '*' has an invalid Info.plist: the LSRequiresIPhoneOS key must not be present.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7040"/>MT7040: The app bundle {AppBundlePath} does not contain an Info.plist.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7041"/>MT7041: Main Info.plist path does not specify a CFBundleIdentifier.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7042"/>MT7042: Main Info.plist path does not specify a CFBundleExecutable.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7043"/>MT7043: Main Info.plist path does not specify a CFBundleSupportedPlatforms.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7044"/>MT7044: Main Info.plist path does not specify a UIDeviceFamily.</h3>
*MSBuild task: ValidateAppBundleTaskBase*
<h3><a name="MT7045"/>MT7045: Unrecognized Format: *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
Where * can be:
- string
- array
- dict
- bool
- real
- integer
- date
- data
<h3><a name="MT7046"/>MT7046: Add: Entry, *, Incorrectly Specified.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7047"/>MT7047: Add: Entry, *, Contains Invalid Array Index.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7048"/>MT7048: Add: * Entry Already Exists.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7049"/>MT7049: Add: Can't Add Entry, *, to Parent.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7050"/>MT7050: Delete: Can't Delete Entry, *, from Parent.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7051"/>MT7051: Delete: Entry, *, Contains Invalid Array Index.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7052"/>MT7052: Delete: Entry, *, Does Not Exist.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7053"/>MT7053: Import: Entry, *, Incorrectly Specified.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7054"/>MT7054: Import: Entry, *, Contains Invalid Array Index.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7055"/>MT7055: Import: Error Reading File: *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7056"/>MT7056: Import: Can't Add Entry, *, to Parent.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7057"/>MT7057: Merge: Can't Add array Entries to dict.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7058"/>MT7058: Merge: Specified Entry Must Be a Container.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7059"/>MT7059: Merge: Entry, *, Contains Invalid Array Index.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7060"/>MT7060: Merge: Entry, *, Does Not Exist.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7061"/>MT7061: Merge: Error Reading File: *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7062"/>MT7062: Set: Entry, *, Incorrectly Specified.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7063"/>MT7063: Set: Entry, *, Contains Invalid Array Index.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7064"/>MT7064: Set: Entry, *, Does Not Exist.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7065"/>MT7065: Unknown PropertyList editor action: *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7066"/>MT7066: Error loading '*': *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
<h3><a name="MT7067"/>MT7067: Error saving '*': *.</h3>
*MSBuild task: PropertyListEditorTaskBase*
# MT8xxx: Runtime error messages
<!--

Просмотреть файл

@ -73,7 +73,7 @@ namespace Xamarin.MacDev.Tasks
return true;
case "real":
if (text != null && !double.TryParse (text, NumberStyles.Float, CultureInfo.InvariantCulture, out real)) {
Log.LogError ("Unrecognized Real Format");
Log.MTError (7045, "Unrecognized Real Format");
return false;
}
@ -81,7 +81,7 @@ namespace Xamarin.MacDev.Tasks
return true;
case "integer":
if (text != null && !int.TryParse (text, NumberStyles.Integer, CultureInfo.InvariantCulture, out integer)) {
Log.LogError ("Unrecognized Integer Format");
Log.MTError (7045, "Unrecognized Integer Format");
return false;
}
@ -89,7 +89,7 @@ namespace Xamarin.MacDev.Tasks
return true;
case "date":
if (text != null && !DateTime.TryParse (text, CultureInfo.InvariantCulture, DateTimeStyles.None, out date)) {
Log.LogError ("Unrecognized Date Format");
Log.MTError (7045, "Unrecognized Date Format");
return false;
}
@ -102,7 +102,7 @@ namespace Xamarin.MacDev.Tasks
value = new PData (new byte[0]);
return true;
default:
Log.LogError ("Unrecognized Type: {0}", type);
Log.MTError (7045, $"Unrecognized Type: {type}");
value = null;
return false;
}
@ -132,7 +132,7 @@ namespace Xamarin.MacDev.Tasks
int i = 0;
if (path.Length == 0) {
Log.LogError ("Add: Entry, \"{0}\", Incorrectly Specified", Entry);
Log.MTError (7046, $"Add: Entry, \"{Entry}\", Incorrectly Specified");
return false;
}
@ -142,7 +142,7 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0 || index >= array.Count) {
Log.LogError ("Add: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7047, $"Add: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
@ -151,7 +151,7 @@ namespace Xamarin.MacDev.Tasks
if (!dict.TryGetValue (path[i], out current))
dict[path[i]] = current = new PDictionary ();
} else {
Log.LogError ("Add: Entry, \"{0}\", Incorrectly Specified", Entry);
Log.MTError (7046, $"Add: Entry, \"{Entry}\", Incorrectly Specified");
return false;
}
@ -165,7 +165,7 @@ namespace Xamarin.MacDev.Tasks
if (path[i].Length == 0) {
index = array.Count;
} else if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Add: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7047, $"Add: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
@ -178,7 +178,7 @@ namespace Xamarin.MacDev.Tasks
array.Add (value);
} else if (dict != null) {
if (dict.ContainsKey (path[i])) {
Log.LogError ("Add: \"{0}\" Entry Already Exists", Entry);
Log.MTError (7048, $"Add: \"{Entry}\" Entry Already Exists");
return false;
}
@ -187,7 +187,7 @@ namespace Xamarin.MacDev.Tasks
dict[path[i]] = value;
} else {
Log.LogError ("Add: Can't Add Entry, \"{0}\", to Parent", Entry);
Log.MTError (7049, $"Add: Can't Add Entry, \"{Entry}\", to Parent");
return false;
}
@ -207,7 +207,7 @@ namespace Xamarin.MacDev.Tasks
case "date": plist = new PDate (DateTime.Now); break;
case "data": plist = new PData (new byte[1]); break;
default:
Log.LogError ("Unrecognized Type: {0}", Type);
Log.MTError (7045, $"Unrecognized Type: {Type}");
return false;
}
} else {
@ -227,7 +227,7 @@ namespace Xamarin.MacDev.Tasks
int i = 0;
if (path.Length == 0) {
Log.LogError ("Delete: Can't Delete Entry, \"{0}\", from Parent", Entry);
Log.MTError (7050, $"Delete: Can't Delete Entry, \"{Entry}\", from Parent");
return false;
}
@ -237,23 +237,23 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Delete: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7051, $"Delete: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
if (index >= array.Count) {
Log.LogError ("Delete: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7052, $"Delete: Entry, \"{Entry}\", Does Not Exist");
return false;
}
current = array[index];
} else if (dict != null) {
if (!dict.TryGetValue (path[i], out current)) {
Log.LogError ("Delete: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7052, $"Delete: Entry, \"{Entry}\", Does Not Exist");
return false;
}
} else {
Log.LogError ("Delete: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7052, $"Delete: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -276,7 +276,7 @@ namespace Xamarin.MacDev.Tasks
int i = 0;
if (path.Length == 0) {
Log.LogError ("Import: Entry, \"{0}\", Incorrectly Specified", Entry);
Log.MTError (7053, $"Import: Entry, \"{Entry}\", Incorrectly Specified");
return false;
}
@ -286,7 +286,7 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0 || index >= array.Count) {
Log.LogError ("Import: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7054, $"Import: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
@ -295,7 +295,7 @@ namespace Xamarin.MacDev.Tasks
if (!dict.TryGetValue (path[i], out current))
dict[path[i]] = current = new PDictionary ();
} else {
Log.LogError ("Import: Entry, \"{0}\", Incorrectly Specified", Entry);
Log.MTError (7053, $"Import: Entry, \"{Entry}\", Incorrectly Specified");
return false;
}
@ -309,14 +309,14 @@ namespace Xamarin.MacDev.Tasks
if (path[i].Length == 0) {
index = array.Count;
} else if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Import: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7054, $"Import: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
try {
value = new PData (File.ReadAllBytes (Value));
} catch {
Log.LogError (null, null, null, Value, 0, 0, 0, 0, "Import: Error Reading File: {0}", Value);
Log.MTError (7055, $"Import: Error Reading File: {Value}", Value);
return false;
}
@ -328,13 +328,13 @@ namespace Xamarin.MacDev.Tasks
try {
value = new PData (File.ReadAllBytes (Value));
} catch {
Log.LogError (null, null, null, Value, 0, 0, 0, 0, "Import: Error Reading File: {0}", Value);
Log.MTError (7055, $"Import: Error Reading File: {Value}", Value);
return false;
}
dict[path[i]] = value;
} else {
Log.LogError ("Import: Can't Add Entry, \"{0}\", to Parent", Entry);
Log.MTError (7056, $"Import: Can't Add Entry, \"{Entry}\", to Parent");
return false;
}
@ -346,7 +346,7 @@ namespace Xamarin.MacDev.Tasks
switch (plist.Type) {
case PObjectType.Dictionary:
if (value.Type == PObjectType.Array) {
Log.LogError ("Merge: Can't Add array Entries to dict");
Log.MTError (7057, "Merge: Can't Add array Entries to dict");
return false;
}
@ -380,7 +380,7 @@ namespace Xamarin.MacDev.Tasks
}
break;
default:
Log.LogError ("Merge: Specified Entry Must Be a Container");
Log.MTError (7058, "Merge: Specified Entry Must Be a Container");
return false;
}
@ -404,23 +404,23 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Merge: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7059, $"Merge: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
if (index >= array.Count) {
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
}
current = array[index];
} else if (dict != null) {
if (!dict.TryGetValue (path[i], out current)) {
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
}
} else {
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -434,12 +434,12 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (i > 0 || path[i].Length > 0) {
if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Merge: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7059, $"Merge: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
if (index >= array.Count) {
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -451,7 +451,7 @@ namespace Xamarin.MacDev.Tasks
try {
value = PObject.FromFile (Value);
} catch {
Log.LogError (null, null, null, Value, 0, 0, 0, 0, "Merge: Error Reading File: {0}", Value);
Log.MTError (7061, $"Merge: Error Reading File: {Value}", Value);
return false;
}
@ -461,7 +461,7 @@ namespace Xamarin.MacDev.Tasks
if (dict != null) {
if (i > 0 || path[i].Length > 0) {
if (!dict.TryGetValue (path[i], out root)) {
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
}
} else {
@ -471,14 +471,14 @@ namespace Xamarin.MacDev.Tasks
try {
value = PObject.FromFile (Value);
} catch {
Log.LogError (null, null, null, Value, 0, 0, 0, 0, "Merge: Error Reading File: {0}", Value);
Log.MTError (7061, $"Merge: Error Reading File: {Value}", Value);
return false;
}
return Merge (root, value);
}
Log.LogError ("Merge: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7060, $"Merge: Entry, \"{Entry}\", Does Not Exist");
return false;
} else {
PObject value;
@ -486,7 +486,7 @@ namespace Xamarin.MacDev.Tasks
try {
value = PObject.FromFile (Value);
} catch {
Log.LogError (null, null, null, Value, 0, 0, 0, 0, "Merge: Error Reading File: {0}", Value);
Log.MTError (7061, $"Merge: Error Reading File: {Value}", Value);
return false;
}
@ -505,7 +505,7 @@ namespace Xamarin.MacDev.Tasks
int i = 0;
if (path.Length == 0) {
Log.LogError ("Set: Entry, \"{0}\", Incorrectly Specified", Entry);
Log.MTError (7062, $"Set: Entry, \"{Entry}\", Incorrectly Specified");
return false;
}
@ -515,23 +515,23 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Set: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7063, $"Set: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
if (index >= array.Count) {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
current = array[index];
} else if (dict != null) {
if (!dict.TryGetValue (path[i], out current)) {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
} else {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -543,12 +543,12 @@ namespace Xamarin.MacDev.Tasks
if (array != null) {
if (!int.TryParse (path[i], out index) || index < 0) {
Log.LogError ("Set: Entry, \"{0}\", Contains Invalid Array Index", Entry);
Log.MTError (7063, $"Set: Entry, \"{Entry}\", Contains Invalid Array Index");
return false;
}
if (index >= array.Count) {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -558,7 +558,7 @@ namespace Xamarin.MacDev.Tasks
array[index] = value;
} else if (dict != null) {
if (!dict.TryGetValue (path[i], out value)) {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -570,7 +570,7 @@ namespace Xamarin.MacDev.Tasks
dict[path[i]] = value;
} else {
Log.LogError ("Set: Entry, \"{0}\", Does Not Exist", Entry);
Log.MTError (7064, $"Set: Entry, \"{Entry}\", Does Not Exist");
return false;
}
@ -591,7 +591,7 @@ namespace Xamarin.MacDev.Tasks
Log.LogTaskProperty ("Value", Value);
if (!Enum.TryParse (Action, out action)) {
Log.LogError ("Unknown PropertyList editor action: {0}", Action);
Log.MTError (7065, $"Unknown PropertyList editor action: {Action}");
return false;
}
@ -599,7 +599,7 @@ namespace Xamarin.MacDev.Tasks
try {
plist = PObject.FromFile (PropertyList, out binary);
} catch (Exception ex) {
Log.LogError (null, null, null, PropertyList, 0, 0, 0, 0, "Error loading '{0}': {1}", PropertyList, ex.Message);
Log.MTError (7066, $"Error loading '{PropertyList}': {ex.Message}", PropertyList);
return false;
}
} else {
@ -637,7 +637,7 @@ namespace Xamarin.MacDev.Tasks
File.WriteAllText (PropertyList, plist.ToXml ());
}
} catch (Exception ex) {
Log.LogError (null, null, null, PropertyList, 0, 0, 0, 0, "Error saving '{0}': {1}", PropertyList, ex.Message);
Log.MTError (7067, $"Error saving '{PropertyList}': {ex.Message}", PropertyList);
}
}

Просмотреть файл

@ -370,6 +370,29 @@ namespace Xamarin.Bundler {
// MT7042 Main Info.plist path does not specify a CFBundleExecutable.
// MT7043 Main Info.plist path does not specify a CFBundleSupportedPlatforms.
// MT7044 Main Info.plist path does not specify a UIDeviceFamily.
// MT7045 Unrecognized Type: *.
// MT7046 Add: Entry, *, Incorrectly Specified.
// MT7047 Add: Entry, *, Contains Invalid Array Index.
// MT7048 Add: * Entry Already Exists.
// MT7049 Add: Can't Add Entry, *, to Parent.
// MT7050 Delete: Can't Delete Entry, *, from Parent.
// MT7051 Delete: Entry, *, Contains Invalid Array Index.
// MT7052 Delete: Entry, *, Does Not Exist.
// MT7053 Import: Entry, *, Incorrectly Specified.
// MT7054 Import: Entry, *, Contains Invalid Array Index.
// MT7055 Import: Error Reading File: *.
// MT7056 Import: Can't Add Entry, *, to Parent.
// MT7057 Merge: Can't Add array Entries to dict.
// MT7058 Merge: Specified Entry Must Be a Container.
// MT7059 Merge: Entry, *, Contains Invalid Array Index.
// MT7060 Merge: Entry, *, Does Not Exist.
// MT7061 Merge: Error Reading File: *.
// MT7062 Set: Entry, *, Incorrectly Specified.
// MT7063 Set: Entry, *, Contains Invalid Array Index.
// MT7064 Set: Entry, *, Does Not Exist.
// MT7065 Unknown PropertyList editor action: *.
// MT7066 Error loading '*': *.
// MT7067 Error saving '*': *.
// MT8xxx runtime
// MT800x misc
// MT8001 Version mismatch between the native Xamarin.iOS runtime and monotouch.dll. Please reinstall Xamarin.iOS.