Host ASP.NET Core with multiple version dotnet runtime like Django's virtualenv? -


i have vm run centos 7.1 , apache serve asp.net core 1.1 application. let individual web application use own target runtime. example:

eshop web-> dotnet core 1.0

blog web -> dotnet core 1.1

testing site -> 2.0.0 beta ...

i read post , recommend use docker, vm have 8gb ram , limit cpu power, django virtual environment target different version each applications.

thanks you.

you don't need special tooling make happen. .net core supports side-by-side installations.

the way dotnet selects runtime use using contents of (appname).runtimeconfig.json file. sdk generate file when build app. if compiled "netcoreapp1.0", build output contain file, , should this:

{   "runtimeoptions": {     "framework": {       "name": "microsoft.netcore.app",       "version": "1.0.4"     }   } } 

if have installed dotnet /usr/share/dotnet/, when execute "dotnet app.dll" load runtime /usr/share/dotnet/shared/microsoft.netcore.app/1.0.4/

for more details in file, see https://github.com/dotnet/cli/blob/rel/1.0.1/documentation/specs/runtime-configuration-file.md


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -