private static string ConfigurationProviderAssembliesPathArgument() { StringBuilder stringBuilder = new StringBuilder(); foreach (Unity.DataContract.PackageInfo current in ModuleManager.packageManager.unityExtensions) { foreach (string current2 in from f in current.files where f.Value.type == PackageFileType.Dll select f into pi select pi.Key) { stringBuilder.AppendFormat(" {0}", CommandLineFormatter.PrepareFileName(Path.Combine(current.basePath, current2))); } } string unityEditorManagedPath = APIUpdaterHelper.GetUnityEditorManagedPath(); stringBuilder.AppendFormat(" {0}", CommandLineFormatter.PrepareFileName(Path.Combine(unityEditorManagedPath, "UnityEngine.dll"))); stringBuilder.AppendFormat(" {0}", CommandLineFormatter.PrepareFileName(Path.Combine(unityEditorManagedPath, "UnityEditor.dll"))); return(stringBuilder.ToString()); }
private static string ConfigurationProviderAssembliesPathArgument() { StringBuilder stringBuilder = new StringBuilder(); using (IEnumerator <PackageInfo> enumerator = ModuleManager.packageManager.get_unityExtensions().GetEnumerator()) { while (((IEnumerator)enumerator).MoveNext()) { PackageInfo current = enumerator.Current; foreach (string path2 in ((IEnumerable <KeyValuePair <string, PackageFileData> >)current.get_files()).Where <KeyValuePair <string, PackageFileData> >((Func <KeyValuePair <string, PackageFileData>, bool>)(f => f.Value.type == 3)).Select <KeyValuePair <string, PackageFileData>, string>((Func <KeyValuePair <string, PackageFileData>, string>)(pi => pi.Key))) { stringBuilder.AppendFormat(" {0}", (object)CommandLineFormatter.PrepareFileName(Path.Combine((string)current.basePath, path2))); } } } string editorManagedPath = APIUpdaterHelper.GetUnityEditorManagedPath(); stringBuilder.AppendFormat(" {0}", (object)CommandLineFormatter.PrepareFileName(Path.Combine(editorManagedPath, "UnityEngine.dll"))); stringBuilder.AppendFormat(" {0}", (object)CommandLineFormatter.PrepareFileName(Path.Combine(editorManagedPath, "UnityEditor.dll"))); return(stringBuilder.ToString()); }