Use Environment.SystemDirectory from GetFolderPath(System) on Windows (#83593)
authorStephen Toub <stoub@microsoft.com>
Sat, 18 Mar 2023 00:49:26 +0000 (20:49 -0400)
committerGitHub <noreply@github.com>
Sat, 18 Mar 2023 00:49:26 +0000 (20:49 -0400)
commit8cacc0fcff10c81aa6f63d37b3155f2aafcb0a0e
tree96abf45899b633875e9ce31f375757342cf8a866
parent281c462b029c5056cdd446da86692e08a9377b01
Use Environment.SystemDirectory from GetFolderPath(System) on Windows (#83593)

* Use Environment.SystemDirectory from GetFolderPath(System) on Windows

* Address PR feedback and fix up a few other occurrences

* Remove KnownFolders.System
src/libraries/Common/src/Interop/Windows/Shell32/Interop.SHGetKnownFolderPath.cs
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs
src/libraries/System.Private.CoreLib/src/System/Environment.Win32.cs
src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEReaderTests.cs
src/libraries/System.Reflection/tests/AssemblyTests.cs
src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs