Skip to content

Commit 810f067

Browse files
author
Hovsep
committed
Merge pull request #2359 from hovsepm/RMpsd1Fix
[Release 1.5.0] Reverted fix to Resources.Rest project
2 parents 10da9f3 + ef1c315 commit 810f067

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/ResourceGroups/GetAzureResourceGroupCmdlet.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ public void OnImport()
7272
System.Management.Automation.PowerShell invoker = null;
7373
invoker = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace);
7474
invoker.AddScript(File.ReadAllText(FileUtilities.GetContentFilePath(
75-
AppDomain.CurrentDomain.BaseDirectory,
75+
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
7676
"ResourceManagerStartup.ps1")));
7777
invoker.Invoke();
7878
}
79-
catch(Exception e)
79+
catch
8080
{
81-
this.WriteDebug("Exception on importing ResourceManagerStartup.ps1: " + e.Message);
81+
// need to fix exception in WriteDebug
82+
// this.WriteDebug("Exception on importing ResourceManagerStartup.ps1: " + e.Message);
8283
}
8384
}
8485
}

0 commit comments

Comments
 (0)