|
|
|
|
@ -106,6 +106,7 @@ namespace ICSharpCode.PackageManagement.Scripting
@@ -106,6 +106,7 @@ namespace ICSharpCode.PackageManagement.Scripting
|
|
|
|
|
powerShellHost.SetRemoteSignedExecutionPolicy(); |
|
|
|
|
UpdateFormatting(); |
|
|
|
|
RedefineClearHostFunction(); |
|
|
|
|
UpdateWorkingDirectory(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CreatePowerShellHost() |
|
|
|
|
@ -132,14 +133,6 @@ namespace ICSharpCode.PackageManagement.Scripting
@@ -132,14 +133,6 @@ namespace ICSharpCode.PackageManagement.Scripting
|
|
|
|
|
powerShellHost.ExecuteCommand(command); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void InitializePackageScriptsForOpenSolution() |
|
|
|
|
{ |
|
|
|
|
if (Solution.IsOpen) { |
|
|
|
|
string command = "Invoke-InitializePackages"; |
|
|
|
|
powerShellHost.ExecuteCommand(command); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WriteInfoBeforeFirstPrompt() |
|
|
|
|
{ |
|
|
|
|
WriteNuGetVersionInfo(); |
|
|
|
|
@ -153,6 +146,20 @@ namespace ICSharpCode.PackageManagement.Scripting
@@ -153,6 +146,20 @@ namespace ICSharpCode.PackageManagement.Scripting
|
|
|
|
|
WriteLine(versionInfo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UpdateWorkingDirectory() |
|
|
|
|
{ |
|
|
|
|
string command = "Invoke-UpdateWorkingDirectory"; |
|
|
|
|
powerShellHost.ExecuteCommand(command); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void InitializePackageScriptsForOpenSolution() |
|
|
|
|
{ |
|
|
|
|
if (Solution.IsOpen) { |
|
|
|
|
string command = "Invoke-InitializePackages"; |
|
|
|
|
powerShellHost.ExecuteCommand(command); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WriteLine(string message) |
|
|
|
|
{ |
|
|
|
|
ScriptingConsole.WriteLine(message, ScriptingStyle.Out); |
|
|
|
|
|