75 [UnconditionalSuppressMessage(
"SingleFile",
"IL3000:Avoid accessing Assembly file path when publishing as a single file", Justification =
"Code handles single-file deployment by using the information of the .exe file")]
80 if (entryAssembly !=
null)
86 hash =
"StrongName" + separator + hash;
92 if (
string.IsNullOrEmpty(
text))
96 if (
string.IsNullOrEmpty(
text))
108 if (
string.IsNullOrEmpty(
text))
111 if (!mutex.WaitOne())
118 if (
string.IsNullOrEmpty(
text))
126 mutex.ReleaseMutex();
139 foreach (
string path
in directories)
142 if (fileName ==
null || fileName.Length != 12)
147 foreach (
string text in directories2)
150 if (fileName2 !=
null && fileName2.Length == 12)
176 directoryInfo.SetAccessControl(directorySecurity);
static string GetFolderPath(SpecialFolder folder)
static ? string ProcessPath
static string[] GetDirectories(string path)
static DirectoryInfo CreateDirectory(string path)
static bool Exists([NotNullWhen(true)] string? path)
static string s_machineRootDirectory
static bool IsAssembly(IsolatedStorageScope scope)
static bool IsRoaming(IsolatedStorageScope scope)
static bool IsMachine(IsolatedStorageScope scope)
static string GetRandomDirectory(string rootDirectory, IsolatedStorageScope scope)
static bool IsDomain(IsolatedStorageScope scope)
static Mutex CreateMutexNotOwned(string pathName)
static string GetRootDirectory(IsolatedStorageScope scope)
static void CreateDirectory(string path, IsolatedStorageScope scope)
static string s_roamingUserRootDirectory
static bool IsApplication(IsolatedStorageScope scope)
static string GetExistingRandomDirectory(string rootDirectory)
static string s_userRootDirectory
static string GetDataDirectory(IsolatedStorageScope scope)
static void GetDefaultIdentityAndHash(out object identity, out string hash, char separator)
static string Combine(string path1, string path2)
static ? string GetFileName(string? path)
static unsafe string GetRandomFileName()
virtual AssemblyName GetName()
static ? Assembly GetEntryAssembly()
static string IsolatedStorage_Init
void AddAccessRule(FileSystemAccessRule rule)
void SetAccessRuleProtection(bool isProtected, bool preserveInheritance)
static string GetStrongHashSuitableForObjectName(string name)
static string GetNormalizedUriHash(Uri uri)
static string GetNormalizedStrongNameHash(AssemblyName name)