public Form1() { InitializeComponent(); var kerbalPath = ConfigurationManager.AppSettings.Get("kerbalInstallPath"); var serverUrl = ConfigurationManager.AppSettings.Get("kerbalModServer"); txtKerbalPath.Text = kerbalPath; // var modCacheDirectory = kerbalPath + @"\ModCache"; var modCacheDirectory = @"ModCache"; Directory.SetCurrentDirectory(kerbalPath); _PackageRepository = PackageRepositoryFactory.Default.CreateRepository(serverUrl); var localPackageRepository = new LocalPackageRepository(modCacheDirectory); var project = new KerbalProjectSystem(""); _ProjectManager = new ProjectManager(_PackageRepository, new DefaultPackagePathResolver(serverUrl), project, localPackageRepository); _PackageManager = new PackageManager(_PackageRepository, new DefaultPackagePathResolver(serverUrl), project, localPackageRepository); if (!Directory.Exists(modCacheDirectory)) { Directory.CreateDirectory(modCacheDirectory); } lstAvailableMods.DisplayMember = "Description"; lstAvailableMods.ValueMember = "Id"; lstInstalledMods.DisplayMember = "Description"; lstInstalledMods.ValueMember = "Id"; RefreshModLists(); }