Exemple #1
0
 Arr(new SimTypePath(SimulatorType.P3Dv4, new AbsolutePath(Path.Combine(
                                                               Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
 new FileInfo(Path.Combine(_settingsDir.FullName, Path.ChangeExtension(name.FormatFileName(), "json")));
Exemple #3
0
 public BitmapImage BaseImage => new(new Uri(Path.Combine(Directory, "balloon.png")));
Exemple #4
0
 (delete : false, path : rootDir),                                                  // directory
 (delete : true, path : WriteFile(Path.Combine(rootDir, "file"))),                  // file
 (delete : false, path : Path.Combine(rootDir, "absent-file")),                     // absent
Exemple #5
0
 EntityPathChangedEvent?.Invoke(this, new EntityPathChangedEventArgs(Path.Combine(App.ServerPath, value)));
 private ConfigLoader() => this.Config = this.getConfig(Path.Combine(BasePath.Name, "Modules", "PartyAIOverhaulCommands", "ModuleData", "config.xml"));
 return(CreateProjectDepsFile(Path.Combine(_tempDir, "projectdeps.props"), variables));
Exemple #8
0
 get => JsonUtility.FromJson <UnityModManagerNet.UnityModManager.ModInfo>(File.ReadAllText(Path.Combine(ModPath, "Info.json"))).Version;
Exemple #9
0
 /// <summary>func Abs(path string) (string, error)</summary>
 public (string result, error error) Abs(string path) => (!Path.IsPathRooted(path) ? Clean(new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), path)).FullName) : Clean(new DirectoryInfo(path).FullName), default);
Exemple #10
0
 .Concat(Directory.GetFiles(Path.GetFullPath(Path.Combine(_buildEnvironment.SDKsPath, @"..\")), simpleName + ".dll", SearchOption.AllDirectories))
 get => new Version(JsonUtility.FromJson <SDKManifest>(File.ReadAllText(Path.Combine(sdkPath, kManifestPath))).version);
Exemple #12
0
 _htcServer  = new HtcServer(Path.Combine(Directory.GetCurrentDirectory(), "HtcConfig.json"));
Exemple #13
0
 static Logger() => new Logger(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments), "NationalGiveaway Logs"), "").Start();
Exemple #14
0
 var sourceFile = new FileInfo(Path.Combine(sourceDirectory.FullName, tileInfo.FileName !));
Exemple #15
0
 get => _Db ?? (_Db = new SQLiteConnection(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "database.db3")));
Exemple #16
0
 WriteFile(Path.Combine(compiledFilesDir, "dotnet.m"), dotnet.result.CompiledBinary);
Exemple #17
0
 new EntityPathChangedEventArgs(Path.Combine(App.ServerPath, value)));
Exemple #18
0
 new FileInfo(
     Path.Combine(
         Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location) ?? throw new InvalidOperationException("Could not get entry assembly location"),
Exemple #19
0
 get => _packageRoot ?? new DirectoryInfo(Path.Combine(ProjectFolder.FullName, "PackageRoot"));
Exemple #20
0
 new FileInfo(
     Path.Combine(
         Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) ?? throw new InvalidOperationException("Could not get app domain assembly location"),
Exemple #21
0
 Content = new FileSystemContentProvider(
     Path.Combine(AppContext.BaseDirectory, "../../../../_common")
Exemple #22
0
 get => new DirectoryInfo(Path.Combine(Path.GetTempPath(), "bffa5489-516c-4244-bd83-15bd5c24f5af", this.TestCase.Name));
Exemple #23
0
 (delete : true, path : WriteSymlink(Path.Combine(rootDir, "sym-file"), "file")),   // symlink to file
 (delete : true, path : WriteSymlink(Path.Combine(rootDir, "sym-abs"), "abent")),   // symlink to absent
Exemple #24
0
 .AddJsonFile(Path.Combine(configDir,
                           $"{prefix}.{ctx.HostingEnvironment.EnvironmentName}.json"), true, true);