internal bool? Retargetable;
internal ProcessorArchitecture ProcessorArchitecture;
internal bool HasPublicKey;
+ internal bool WindowsRuntime;
}
enum ParseAssemblyResult
{
System.Collections.Generic.Dictionary<string, string> unknownAttributes = null;
bool hasProcessorArchitecture = false;
+ bool hasContentType = false;
string[] parts = fullName.Substring(pos).Split(',');
for (int i = 0; i < parts.Length; i++)
{
return ParseAssemblyResult.GenericError;
}
break;
+ case "contenttype":
+ if (hasContentType)
+ {
+ return ParseAssemblyResult.DuplicateKey;
+ }
+ hasContentType = true;
+ if (kv[1].Trim().ToLowerInvariant() != "windowsruntime")
+ {
+ return ParseAssemblyResult.GenericError;
+ }
+ parsedName.WindowsRuntime = true;
+ break;
default:
if (kv[1].Trim() == "")
{