GetDefaultMonoGacPaths() static private method

static private GetDefaultMonoGacPaths ( ) : Collection
return Collection
Esempio n. 1
0
        private static Collection <string> GetGacPaths()
        {
            if (BaseAssemblyResolver.on_mono)
            {
                return(BaseAssemblyResolver.GetDefaultMonoGacPaths());
            }
            Collection <string> strs   = new Collection <string>(2);
            string environmentVariable = Environment.GetEnvironmentVariable("WINDIR");

            if (environmentVariable == null)
            {
                return(strs);
            }
            strs.Add(Path.Combine(environmentVariable, "assembly"));
            strs.Add(Path.Combine(environmentVariable, Path.Combine("Microsoft.NET", "assembly")));
            return(strs);
        }