I'm doing build & deploy content in Visual Studio but this takes a lot of space (170 MB) because it contains runtime (dnx core clr) and all packages files.
Can I deploy web app to windows server and automatically install runtime and all packages on server for my web app?
-
.NET Native is coming, which will shrink all of them to a single executable. So wait and wait.Lex Li– Lex Li2016-03-11 09:09:55 +00:00Commented Mar 11, 2016 at 9:09
Add a comment
|
1 Answer
You can scripted it to download the runtime as you instal it.
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
Dependencies can be then be dowloaded using the dnu restore command based on you project.json file.