Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

OS X - AnsiConsole threw an exception - does not support current color. #1751

@iamthemovie

Description

@iamthemovie

I'm going to assume this is a CoreCLR issue with the PAL so I will post it here and also in the CoreCLR repo just in case.

Running dnu restore on my Mac with CoreCLR 1.0.0-beta5-11657 and a basic blank ASP 5 application produces:

screen shot 2015-04-30 at 16 01 05

System.TypeInitializationException: The type initializer for 'Microsoft.Framework.Runtime.Common.CommandLine.AnsiConsole' threw an exception. ---> System.PlatformNotSupportedException: This platform does not support getting the current color.
at System.ConsolePal.get_ForegroundColor()
at Microsoft.Framework.Runtime.Common.CommandLine.AnsiConsole..ctor(TextWriter writer)
at Microsoft.Framework.Runtime.Common.CommandLine.AnsiConsole..cctor()
--- End of inner exception stack trace ---
at Microsoft.Framework.PackageManager.Program.CreateReports(Boolean verbose, Boolean quiet)
at Microsoft.Framework.PackageManager.Program.<>c__DisplayClass3_1.<

b__2>d.MoveNext()
System.PlatformNotSupportedException: This platform does not support getting the current color.
at System.ConsolePal.get_ForegroundColor()
at Microsoft.Framework.Runtime.Common.CommandLine.AnsiConsole..ctor(TextWriter writer)
at Microsoft.Framework.Runtime.Common.CommandLine.AnsiConsole..cctor()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions