Cannot start my static file hosting server in ASP.NET vNext -
i have simple asp.net vnext wanted static file server. had used kvm upgrade
install latest version , below project.json
.
{ "dependencies": { "helios" : "0.1-alpha-*", "microsoft.aspnet.filesystems": "0.1-alpha-*", "microsoft.aspnet.http": "0.1-alpha-*", "microsoft.aspnet.staticfiles": "" }, "commands": { "web": "microsoft.aspnet.hosting server=microsoft.aspnet.server.weblistener server.urls=http://localhost:22222" }, "configurations" : { "net45" : { }, "k10" : { "system.diagnostics.contracts": "4.0.0.0", "system.security.claims" : "0.1-alpha-*" } } }
and below startup.cs
using system; using microsoft.aspnet.builder; namespace webapplication3 { public class startup { public void configure(ibuilder app) { app.usestaticfiles(); } } }
then when ran kpm restore
got error said
unable locate microsoft.aspnet.staticfiles >= 0.1-alpha-build-0402 unable locate microsoft.aspnet.diagnostics >= 0.1-alpha-build-0623 unable locate microsoft.aspnet.hosting >= 0.1-alpha-build-0519 unable locate microsoft.aspnet.server.weblistener >= 0.1-alpha-build-0469
below result of kvm list
.
active version runtime architecture location ------ ------- ------- ------------ -------- 0.1-alpha-build-0421 svr50 x86 c:\users\me\.kre\packages 0.1-alpha-build-0472 svr50 x64 c:\users\me\.kre\packages 0.1-alpha-build-0472 svr50 x86 c:\users\me\.kre\packages * 0.1-alpha-build-0496 svr50 x86 c:\users\me\.kre\packages
i think have 0.1-alpha-*
installed why kpm restore
told me cannot find.
do have aspnet vnext myget feed (github.com/aspnet/home/blob/master/nuget.config#l4) configured?
Comments
Post a Comment