protected override string GenerateResponseFileCommands() { var args = new Dictionary <string, string> { ["KernelPkg"] = KernelPkg, ["EnableDebug"] = DebugEnabled.ToString(), ["EnableStackCorruptionDetection"] = StackCorruptionDetectionEnabled.ToString(), ["StackCorruptionDetectionLevel"] = StackCorruptionDetectionLevel, ["DebugMode"] = DebugMode, ["TraceAssemblies"] = TraceAssemblies, ["DebugCom"] = DebugCom.ToString(), ["TargetAssembly"] = Path.GetFullPath(TargetAssembly), ["OutputFilename"] = Path.GetFullPath(OutputFilename), ["EnableLogging"] = EnableLogging.ToString(), ["EmitDebugSymbols"] = EmitDebugSymbols.ToString(), ["IgnoreDebugStubAttribute"] = IgnoreDebugStubAttribute.ToString(), }.ToList(); foreach (var reference in References) { args.Add(new KeyValuePair <string, string>("References", reference.ItemSpec)); } foreach (var plugsReference in PlugsReferences) { args.Add(new KeyValuePair <string, string>("PlugsReferences", plugsReference.ItemSpec)); } return(String.Join(Environment.NewLine, args.Select(a => $"{a.Key}:{a.Value}"))); }
public void Save() { // check path if (!Directory.Exists(DataPath)) { Directory.CreateDirectory(DataPath); } XmlTextWriter xml = new XmlTextWriter(Path.Combine(DataPath, ConfigFile), Encoding.UTF8); xml.WriteStartDocument(true); xml.WriteStartElement("wowace"); xml.WriteStartElement("aptget"); WriteSetting(xml, "UseExternals", UseExternals.ToString()); WriteSetting(xml, "KeepZips", KeepZips.ToString()); WriteSetting(xml, "DeleteBeforeExtract", DeleteBeforeExtract.ToString()); WriteSetting(xml, "CreateFullBackupBeforeUpgrade", CreateFullBackupBeforeUpgrade.ToString()); WriteSetting(xml, "UnpackPackages", UnpackPackages.ToString()); WriteSetting(xml, "FetchRequiredDeps", FetchRequiredDeps.ToString()); WriteSetting(xml, "FetchOptionalDeps", FetchOptionalDeps.ToString()); WriteSetting(xml, "DebugEnabled", DebugEnabled.ToString()); WriteSetting(xml, "SilentMode", SilentMode.ToString()); WriteSetting(xml, "AutoDetectWoW", AutoDetectWoW.ToString()); WriteSetting(xml, "WoWInstallPath", WoWInstallPath); WriteSetting(xml, "Log", Log.ToString()); WriteSetting(xml, "LogDebug", LogDebug.ToString()); WriteSetting(xml, "AutoUpdateIndex", AutoUpdateIndex.ToString()); xml.WriteEndElement(); xml.WriteEndElement(); xml.Close(); }
public void Describe(Description description) { description.Properties[nameof(Enabled)] = Enabled.ToString(); description.Properties["Debugging Tracing Enabled"] = DebugEnabled.ToString(); description.Properties[nameof(DelayMessagePolling)] = $"{DelayMessagePolling} ms"; description.Properties[nameof(ListenerCleanupPolling)] = $"{ListenerCleanupPolling} ms"; description.Properties[nameof(SubscriptionRefreshPolling)] = $"{SubscriptionRefreshPolling} ms"; description.Properties[nameof(InMemoryTransport)] = InMemoryTransport.ToString(); }
public void Describe(Description description) { description.Properties[nameof(Enabled)] = Enabled.ToString(); description.Properties["Debugging Tracing Enabled"] = DebugEnabled.ToString(); description.Properties[nameof(DelayMessagePolling)] = $"{DelayMessagePolling} ms"; description.Properties[nameof(ListenerCleanupPolling)] = $"{ListenerCleanupPolling} ms"; description.Properties[nameof(SubscriptionRefreshPolling)] = $"{SubscriptionRefreshPolling} ms"; description.Properties[nameof(InMemoryTransport)] = InMemoryTransport.ToString(); var jsonSettings = new Description(); description.Children["Json Serializer Settings"] = jsonSettings; jsonSettings.Properties[nameof(JsonMessageSerializerSettings.TypeNameHandling)] = JsonMessageSerializerSettings.TypeNameHandling.ToString(); jsonSettings.Properties[nameof(JsonMessageSerializerSettings.PreserveReferencesHandling)] = JsonMessageSerializerSettings.PreserveReferencesHandling.ToString(); jsonSettings.Properties[nameof(JsonMessageSerializerSettings.ReferenceLoopHandling)] = JsonMessageSerializerSettings.ReferenceLoopHandling.ToString(); }
protected override string GenerateCommandLineCommands() { Dictionary <string, string> args = new Dictionary <string, string> { { "KernelPkg", KernelPkg }, { "EnableDebug", DebugEnabled.ToString() }, { "EnableStackCorruptionDetection", StackCorruptionDetectionEnabled.ToString() }, { "StackCorruptionDetectionLevel", StackCorruptionDetectionLevel }, { "DebugMode", DebugMode }, { "TraceAssemblies", TraceAssemblies }, { "DebugCom", DebugCom.ToString() }, { "OutputFilename", Path.GetFullPath(OutputFilename) }, { "EnableLogging", EnableLogging.ToString() }, { "EmitDebugSymbols", EmitDebugSymbols.ToString() }, { "IgnoreDebugStubAttribute", IgnoreDebugStubAttribute.ToString() } }; List <string> refs = (from reference in References where reference.MetadataNames.OfType <string>().Contains("FullPath") select reference.GetMetadata("FullPath") into xFile select Convert.ToString(xFile)).ToList(); string Arguments = args.Aggregate("", (current, arg) => current + "\"" + arg.Key + ":" + arg.Value + "\" "); Arguments = refs.Aggregate(Arguments, (current, Ref) => current + "\"References:" + Ref + "\" "); Arguments = AssemblySearchDirs.Split(';').Aggregate(Arguments, (current, Dir) => current + "\"AssemblySearchDirs:" + Dir + "\" "); // replace \" by \\" Arguments = Arguments.Replace("\\\"", "\\\\\""); Log.LogMessage(MessageImportance.High, $"Invoking IL2CPU.exe {Arguments}"); return(Arguments); }