azure - Kestrel Running which framework? -
i have new asp.net 5 project , setup project.json below;
"frameworks": { "dnx451": { "dependencies": { "externallibrary": "1.3.0" } }, "dnxcore50": {} } i'm running project through kestrel default command defined in project.json.
"kestrel": "microsoft.aspnet.hosting --server kestrel --server.urls http://localhost:5001" everything works fine. project runs , dependency works well. thing don't understand decides on underlying framework use?
as far understand project should fail if kestrel uses dnxcore50. if case how push kestrel use it?
just side note, project runs pretty no errors @ all, when try manually build project dnu error below. don't consider critical @ point, not cause failure during run time far can see. wanted add in case helps.
in visual studio 2015, framework used determined in order:
the project properties. right-click .xproj in solution explorer , select properties. head "application" section (the default), , can "use specific dnx version", including version, platform, , architecture.
the global.json. don't know if platform can changed here, example:
"sdk": { "version": "1.0.0-beta6-12032" }visual studio uses specific runtime default depending on version. believe vs 2015 rc uses beta4, .net framework, x64 default.
when running command line, it's determined active dnvm. can use command dnvm list display installed vms. you'll list similar following:
active version runtime architecture location alias ------ ------- ------- ------------ -------- ----- 1.0.0-beta4 clr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta4 clr x86 c:\users\matt\.dnx\runtimes 1.0.0-beta4 coreclr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta4 coreclr x86 c:\users\matt\.dnx\runtimes 1.0.0-beta4-11566 clr x86 c:\users\matt\.dnx\runtimes 1.0.0-beta5-11855 clr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta5-11855 clr x86 c:\users\matt\.dnx\runtimes 1.0.0-beta5-11855 coreclr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta6-11921 clr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta6-11921 clr x86 c:\users\matt\.dnx\runtimes x64 1.0.0-beta6-12005 clr x64 c:\users\matt\.dnx\runtimes 1.0.0-beta6-12005 clr x86 c:\users\matt\.dnx\runtimes * 1.0.0-beta6-12032 clr x64 c:\users\matt\.dnx\runtimes default 1.0.0-beta6-12032 clr x86 c:\users\matt\.dnx\runtimes the * indicates current vm. coreclr uses dnxcore50, , others (likely mono on mac) use corresponding framework, seem compile dnx451.
Comments
Post a Comment