asp.net - Do .NET Core apps require the .NET runtime installed on the target machine? -


in video, scott hanselman interviews guy asp.net team. says 1 of goals of asp.net 5, on top of .net core, apps won't depend on .net framework , gac assemblies on hosting server. instead, .net core libraries released via nuget packages , apps deployed dependencies.

one of reasons microsoft can release bug fix or new feature, , don't have wait until new version (of full framework) installed on our hosting environment.

my question is:

are apps built on .net core independent of version of .net installed on target machine, , can run without .net framework installed?

yes, framework use in application independent of .net framework installed on target server, because core .net framework referenced via nuget packages , can bundled deployment via dnx utility, of interest dnu publish command.

here excerpt, describing dnu publish does:


publish (dnu publish)

the publish command package application self-contained directory can launched. create following directory structure:

  • output/
  • output/packages
  • output/appname
  • output/commandname.cmd

the packages directory contains packages application needs run.

the appname directory contain of applications code, if have project references appear own directory code @ level well.


so .net core exist in output/packages directory , not need installed on target server.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -