Commit Graph
961 Commits
Author SHA1 Message Date
Jason Shirk 533a5e3225 Import System.Console In/Out/Error stream changes
Thanks Jason.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer eee564e465 Delete deprecated CoreConsoleHost project 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 97ea9308fb Add readme to src/powershell 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 6d3c42a0b0 Migrate profile 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 1a61837c07 Migrate CoreConsoleHost/Modules
And update mapping.json
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 630eb69c7c Add managed entrance for powershell project
The powershell project's `Main` function initializes the custom
`AssemblyLoadContext` and then delegates to `UnmanagedPSEntry.Start`.
This lets us undo several changes to the `ConsoleHost` managed
entry (notably, the `Start` function signature does not have to change,
thus the `consoleFilePath` variable still exists).
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer a1a722c4a1 Add powershell project shim
The `src/powershell` project builds Core PowerShell as a .NET CLI app,
with a dependency on `Microsoft.PowerShell.ConsoleHost`, so that the
latter can remain a library.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 72b763a7e1 Fix ConsoleHost on Windows CoreCLR build 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer fc9aa4cd88 Make ConsoleHost internals visible to powershell-tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 8435ed758c Fix PSReadLine for net451 build
Needed System.Windows.Forms
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer d8b2d1fb0e Fix command-line parser to support --parameters 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer c4bfc52c76 Migrate ConsoleHost .gitignore 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 849ea50ab7 Load PSReadLine by correct name
Linux is case-sensitive, so the modules are too.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 78dd93c1ac Build PSReadLine for ConsoleHost 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 2e71a090e7 Use ~/.powershell for ConsoleHost profile on Linux 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 8af7d5f344 Guard use of ConsoleControl in ConsoleHostRawUserInterface
This uses the RawUserInterface implementation from the original
CoreConsoleHost.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 02e9f100d2 Guard use of ConsoleControl in ConsoleHostUserInterface 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 702082f597 Guard use of ConsoleControl in ConsoleHost 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 3cd0d75278 Don't build ConsoleControl 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 602c7c39fc Don't build EngineInstaller 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 04f551fe91 Don't build MshHostMshSnapin 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 8021247b43 Guard AmsiUtils in SessionState Init 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 2f73af53df Remove native host dependency for ConsoleHost
When Open PowerShell is built (as .NET Core project), `OPEN` is defined.
The `Start` function normally used as the entry point from PowerShell's
custom native host is instead the real `Main` entry point of the
program, so it can be launched from the `dotnet` host.

Because Core PowerShell depends on the native host to setup the custom
assembly load context, we do it here in managed code immediately on
start-up.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 6f425d0ffd Make ConsoleHost deploy profiles and native libraries 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 2d2d58cb23 Make ConsoleHost/AssemblyInfo portable 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer ad9c4084d8 Make ConsoleHost emit powershell executable 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 63ab9fe681 Bump MMIN package to rc4
With the correct NETStandard.Library dependency.
2016-05-06 11:49:02 -07:00
Andy Schwartzmeyer 52de677068 Merge pull request #949 from PowerShell/native
remove dependency on native GetHostname
2016-05-06 10:01:40 -07:00
Andy Schwartzmeyer c848cdc15c Merge pull request #920 from PowerShell/removeitem
Fixes removal of symbolic link on Windows

And don't ask confirmation on Linux
2016-05-06 09:59:24 -07:00
dantraMSFT 31d48b39dd remove dead code 2016-05-05 13:49:39 -07:00
Andrew Schwartzmeyer ee146e0153 Bump src/windows-build submodule
With MMI package.
2016-05-05 13:49:39 -07:00
dantraMSFT 2ae8f5c3a0 Switch to MMI.Native package instead of stub
Update build to use a custom Package directory (`dotnet restore`
installs package assemblies to this location).
2016-05-05 13:49:39 -07:00
dantraMSFT 97eee57101 Strong name sign and InternalsVisibleTo for Microsoft.Windows.DSC.CoreConfProviders 2016-05-05 13:49:39 -07:00
George Fleming 1b97c954ea remove dependency on native GetHostname 2016-05-05 09:08:06 -07:00
Andrew Schwartzmeyer a7c1ba9079 Pin DotNet packages to eliminate NuGet warnings 2016-05-04 13:42:19 -07:00
Andrew Schwartzmeyer cf1455f1ba Update .NET Core from build 24022 to 24103 2016-05-04 13:16:40 -07:00
Andy Schwartzmeyer aa95479307 Merge pull request #937 from PowerShell/psreadline5
Fix MenuComplete
2016-05-02 11:01:19 -07:00
Andrew Schwartzmeyer 9c5d076559 Fix directory completion for different file-systems
Use the file-system agnostic `System.IO.Path.DirectorySeparatorChar` for
`GetReplacementTextForDirectory`, instead of hard-coded backslashes.
2016-04-30 15:39:07 -07:00
George Fleming 88457fc5d4 Fix MenuComplete 2016-04-29 14:56:16 -07:00
George Fleming 31ddde619f Undo accidental removal of new keyword 2016-04-29 13:40:36 -07:00
George Fleming a431e38475 Remove commented out line 2016-04-29 13:34:26 -07:00
George Fleming 42cf547afc Change default history file location 2016-04-29 13:28:43 -07:00
George Fleming 6eff9fdbea Include System.Windows.Forms only if not CORECLR 2016-04-29 13:28:43 -07:00
George Fleming fa0854cdfc Change from check for Linux to not Windows 2016-04-29 13:28:43 -07:00
George Fleming bff72e2e3b Merge with Andy's changes 2016-04-29 13:23:34 -07:00
George Fleming 74b5060f6e Fix ClearScreen, and disable scroll-related functions that don't work in CoreCLR 2016-04-29 13:17:53 -07:00
George Fleming 1d87607bd4 Fix Undo/Redo 2016-04-29 13:17:53 -07:00
George Fleming 66ee25c603 Change default colors, and show highlighted text properly 2016-04-29 13:17:53 -07:00
Andrew Schwartzmeyer 573461e4c2 Fix comparison of keys in dispatch dictionary
This compares the keys by a combination of their ConsoleKey and
Modifiers fields. We cannot compare the KeyChar field as it is
platform (and TTY configuration) dependent.
2016-04-29 10:11:34 -07:00
Andrew Schwartzmeyer 48d5ef755d Bump windows-build 2016-04-28 14:21:51 -07:00