private static void RunBeforeAnyTests() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { if (GVFSTestConfig.ReplaceInboxProjFS) { ProjFSFilterInstaller.ReplaceInboxProjFS(); } GVFSServiceProcess.InstallService(); string statusCacheVersionTokenPath = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData, Environment.SpecialFolderOption.Create), "GVFS", "GVFS.Service", "EnableGitStatusCacheToken.dat"); if (!File.Exists(statusCacheVersionTokenPath)) { File.WriteAllText(statusCacheVersionTokenPath, string.Empty); } } }
private static void RunBeforeAnyTests() { if (GVFSTestConfig.ReplaceInboxProjFS) { ProjFSFilterInstaller.ReplaceInboxProjFS(); } GVFSServiceProcess.InstallService(); string serviceProgramDataDir = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles, Environment.SpecialFolderOption.Create), "GVFS", "ProgramData", "GVFS.Service"); string statusCacheVersionTokenPath = Path.Combine( serviceProgramDataDir, "EnableGitStatusCacheToken.dat"); if (!File.Exists(statusCacheVersionTokenPath)) { Directory.CreateDirectory(serviceProgramDataDir); File.WriteAllText(statusCacheVersionTokenPath, string.Empty); } }