Setting DNX_APPBASE from the deployment helpers

This commit is contained in:
Praburaj 2015-04-15 15:09:15 -07:00
parent 6dd1fd7dc1
commit 76d0d56b5d
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,6 @@
<!-- This will turn on detailed errors when deployed to remote servers -->
<!-- This setting is not recommended for production -->
<add key="ASPNET_DETAILED_ERRORS" value="true" />
<add key="dnx-app-base" value="../" />
</appSettings>
</configuration>

View File

@ -90,8 +90,10 @@ namespace DeploymentHelpers
// IIS express figures out the DNX from %PATH%.
#if DNX451
startInfo.EnvironmentVariables["PATH"] = ChosenRuntimePath + ";" + startInfo.EnvironmentVariables["PATH"];
startInfo.EnvironmentVariables["DNX_APPBASE"] = DeploymentParameters.ApplicationPath;
#elif DNXCORE50
startInfo.Environment["PATH"] = ChosenRuntimePath + ";" + startInfo.Environment["PATH"];
startInfo.Environment["DNX_APPBASE"] = DeploymentParameters.ApplicationPath;
#endif
var hostProcess = Process.Start(startInfo);