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.

dnu restore exception on osx yosemite #1768

@robertmircea

Description

@robertmircea

I am trying to run a dnu restore on Mac for a very simple dnxcore50 project. When executing the command at prompt in the project directory, I receive the following exception:

dnu restore 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.<<Main>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()

The project is configured under the following runtime:

dnvm list Active Version Runtime Arch Location Alias ------ ------- ------- ---- -------- ----- * 1.0.0-beta5-11682 coreclr x64 ~/.dnx/runtimes 1.0.0-beta4 mono ~/.dnx/runtimes default

Any suggestion on how to do the package restore?

Thanks,
Robert

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