static string GetPortableRootDirectory()
        {
            if (EnvironmentUtility.IsUnix)
            {
                var resolver = new MonoNetPortableProfilePathResolver();
                return(resolver.GetRootDirectory());
            }

            return(Path.Combine(
                       Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86, Environment.SpecialFolderOption.DoNotVerify),
                       @"Reference Assemblies\Microsoft\Framework\.NETPortable"));
        }
        static string GetPortableRootDirectory()
        {
            if (EnvironmentUtility.IsUnix)
            {
                var resolver = new MonoNetPortableProfilePathResolver();
                return resolver.GetRootDirectory();
            }

            return Path.Combine(
                       Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86, Environment.SpecialFolderOption.DoNotVerify),
                       @"Reference Assemblies\Microsoft\Framework\.NETPortable");
        }
        void ShowUnixProfileLocation()
        {
            if (ShowNuGetPortableReferencePathOverrideIfExists()) {
                return;
            }

            WriteLine("Possible .NETPortable root paths:");

            var resolver = new MonoNetPortableProfilePathResolver();
            foreach (string path in resolver.GetPossibleMonoNetPortablePaths()) {
                WriteLine(path);
            }

            WriteLine();

            string directory = resolver.GetRootDirectory();
            WriteNetPortableRootPath(directory);
        }