bool RegisterRedistAssemblies(FilePath location) { var info = new SystemPackageInfo() { Name = "moonlight-web-" + fxVersion + "-redist", Description = "Moonlight " + fxVersion + " Redistributable Assemblies", Version = pluginVersion, IsFrameworkPackage = true, IsGacPackage = false, IsCorePackage = false, TargetFramework = framework.Id, }; var dir = location.Combine(fxVersion + "-redist"); try { var files = Directory.GetFiles(dir, "*.dll"); runtime.RegisterPackage(info, files); return(true); } catch (IOException ex) { LoggingService.LogError("Could not enumerate redist assemblies from directory '" + dir + "'", ex); return(false); } }