Skip to content

Running the HelloMvc sample as per Readme.md does not work #1201

@markmnl

Description

@markmnl

Diligently following the Readme instructions today:

...
3.Run dnu restore to restore the packages required by that sample.
4.You should see a bunch of output as all the dependencies of the app are downloaded from MyGet.
5.Run the sample using the appropriate DNX command:
◦For the console app run dnx run .
◦For the web apps run dnx kestrel
...

produces:

...
Restore complete, 132922ms elapsed

NuGet Config files used:
    C:\Users\markm\AppData\Roaming\NuGet\nuget.config
    H:\Dev\aspnet\home\samples\latest\nuget.config

Feeds used:
    https://www.myget.org/F/aspnetvnext/api/v2/
    https://nuget.org/api/v2/

Installed:
    215 package(s) to C:\Users\markm\.dnx\packages

H:\Dev\aspnet\home\samples\latest\HelloMvc>dnx run
Error: H:\Dev\aspnet\home\samples\latest\HelloMvc\Startup.cs(16,27): DNX,Version
=v4.5.1 error CS1061: 'ILoggerFactory' does not contain a definition for 'AddCon
sole' and no extension method 'AddConsole' accepting a first argument of type 'I
LoggerFactory' could be found (are you missing a using directive or an assembly
reference?)

H:\Dev\aspnet\home\samples\latest\HelloMvc>dnx kestrel
Error: Unable to load application or execute command 'kestrel'. Available comman
ds: web.

H:\Dev\aspnet\home\samples\latest\HelloMvc>dnx web
'Microsoft.AspNet.Server.Kestrel' does not contain a 'Program' type suitable for
 an entry point

:(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions