I am using Visual Studio 2015 Preview to create ASP.NET 5 projects. I do not think it is difficult to deploy to IIS right now. First publish your site by publishing it as a file system in VS 2015 preview, then copy the published folder to your server, create the application in IIS and set the application folder to the wwwroot folder (and not the root folder), that's all. Keep in mind, check to see if there is any "Microsoft.AspNet.Server.IIS" on your project.json website before posting it.
Edit: there should be a web.config file in the wwwroot folder, the contents of web.config can be like this (with the option to precompile when publishing):
<?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="kpm-package-path" value="..\approot\packages" /> <add key="bootstrapper-version" value="1.0.0-beta1" /> <add key="kre-package-path" value="..\approot\packages" /> <add key="kre-version" value="1.0.0-beta1" /> <add key="kre-clr" value="CoreCLR" /> <add key="kre-app-base" value="..\approot\packages\Rvc.PopUpSite\1.0.0\root" /> </appSettings> </configuration>
or like this (without the precompilation option):
<?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="kpm-package-path" value="..\approot\packages" /> <add key="bootstrapper-version" value="1.0.0-beta1" /> <add key="kre-package-path" value="..\approot\packages" /> <add key="kre-version" value="1.0.0-beta1" /> <add key="kre-clr" value="CoreCLR" /> <add key="kre-app-base" value="..\approot\src\Rvc.PopUpSite" /> </appSettings> </configuration>
Pay attention to the value of kre-app-base . Sometimes its value is an empty string after publishing to Visual Studio.
Ricky Dec 18 '14 at 5:40 2014-12-18 05:40
source share