diff options
Diffstat (limited to 'main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs')
-rw-r--r-- | main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs b/main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs index 2e0dcca894..07dd65991f 100644 --- a/main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs +++ b/main/src/addins/AspNet/Execution/AspNetExecutionHandler.cs @@ -89,7 +89,7 @@ namespace MonoDevelop.AspNet.Execution return cmd != null && !string.IsNullOrEmpty (GetXspName (cmd)); } - public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console) + public ProcessAsyncOperation Execute (ExecutionCommand command, OperationConsole console) { var cmd = (AspNetExecutionCommand) command; var xspPath = GetXspPath (cmd); @@ -102,6 +102,11 @@ namespace MonoDevelop.AspNet.Execution evars.Add (v.Key, v.Value); } + //HACK: work around Mono trying to create registry in non-writable location + if (cmd.TargetRuntime is MonoTargetRuntime && !Platform.IsWindows) { + evars ["MONO_REGISTRY_PATH"] = UserProfile.Current.TempDir.Combine ("aspnet-registry"); + } + //if it's a script, use a native execution handler if (xspPath.Extension != ".exe") { //set mono debug mode if project's in debug mode |