I understand that DNX provides the ability to invoke the various new package management features of ASP.NET v5 apps.
However, is it possible to "build" one of these apps (using DNX etc) and "precompile" them in such a way that they can be deployed to (using Octopus) and run on a unmodified IIS server using .NET framework 4.5?
I had the option to target .NET 4.5 when creating the project, and while installing DNX on our build server is unlikely to be a problem, it's too soon to push it out to our production web servers.
I discovered that this is indeed possible.
I published my app by running the following command in the same directory as the
project.json
file:Where
runtimeX
is an appropriate installed runtime found using:This only lists the installed runtimes though so the following is needed to get the full name to use as the argument to
dnu
:You can check the args for dnvm's "name" command but essentially you specify the processor bitness and runtime version and you get the properly formatted name back.
Once you've done this, take the contents of
bin\output
and run it up in IIS or IISExpress. Worked like a charm for me, even though I copied this output to my other development VM that has no VS2015/DNX tools installed yet.