Commit graph

2253 commits

Author SHA1 Message Date
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 7f9052c1c6 Remove platform tests
This is pointless to test as the .NET Code better be correct, or we have
worse problems.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 7c80035d35 Skip xUnit tests not yet ported to OS X 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 0012fa90d6 Remove deprecated Listener tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer 4234b3db73 Remove CoreConsoleHost from xUnit tests 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 658f3e0d48 Update xUnit project to use ConsoleHost 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 5c0d17e3a2 Update ConsoleHost tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer dca17ac0f7 Migrate ConsoleHost tests 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 0c62b9a12d Always build ConsoleHost as top project 2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer 7c0cfb7873 Merge pull request #986 from PowerShell/andschwa/fix-cmdlet-example-packages
Pin cmdlet example packages to RC2
2016-05-17 13:28:17 -07:00
Andrew Schwartzmeyer cefa51b0d2 Pin cmdlet example packages to RC2
Otherwise builds fail because of RC3.
2016-05-17 12:34:50 -07:00
Andy Schwartzmeyer 04c9af65d6 Merge pull request #980 from PowerShell/vors/pkg
Add workaroud for OS X packaging utime bug
2016-05-17 10:49:31 -07:00
Andrew Schwartzmeyer 357f38f26d Comment out template guidelines
Thanks @vors! This makes the guidelines not show up in the rendered
issue/pull request, but keeps the text in the source.
2016-05-16 15:04:24 -07:00
Sergei Vorobev 7ab2a51ae4 Add workaroud for OS X packaging utime bug 2016-05-16 14:53:40 -07:00
Andy Schwartzmeyer ad18c631b4 Merge pull request #970 from PowerShell/ConvertFromCsvDRTTests
Add Unit Test for ConvertFrom-Csv
2016-05-16 10:43:11 -07:00
Andy Schwartzmeyer 2b335d8442 Merge pull request #969 from PowerShell/ExportFormatDataCommandTests
Add Unit Test for Export-FormatData
2016-05-16 10:42:27 -07:00
Andy Schwartzmeyer 29ebef64d4 Merge pull request #967 from PowerShell/RemoveTypeDataCommandTest
Add Unit Test for Remove-TypeData
2016-05-16 10:41:12 -07:00
Andy Schwartzmeyer 9c6842dc4a Merge pull request #976 from PowerShell/vors/publish
Fix warning message in Start-PSBuild
2016-05-15 16:00:51 -07:00
Sergei Vorobev 9401e4f30f Fix warning message in Strt-PSBuild 2016-05-15 12:51:57 -07:00
Andy Schwartzmeyer 94f6c37a8d Merge pull request #973 from PowerShell/dantra/buildfix
Update location where Start-PSBuild expects to find dotnet.exe
2016-05-13 18:01:21 -07:00
dantraMSFT da0247f304 Update location where Start-PSBuild expects to find dotnet.exe 2016-05-13 16:49:39 -07:00
TingLiu6 c4beeb9f62 Fixed CR issues 2016-05-12 21:51:55 -07:00
TingLiu6 a9f6c90acc Fixed CR issues 2016-05-12 21:46:34 -07:00
TingLiu6 3360035d29 Add Unit Test for ConvertFrom-Csv 2016-05-12 01:42:15 -07:00
TingLiu6 f0de4321c8 Add Unit Test for Export-FormatData 2016-05-11 23:29:15 -07:00
TingLiu6 cd871b97a3 Fixed CR issues for Remove-TypeData 2016-05-11 19:46:56 -07:00
Andy Schwartzmeyer 2b28e1075f Merge pull request #968 from HemantMahawar/master
Added a readme to clarify where internal vs. public documents should go
2016-05-11 18:05:41 -07:00
Hemant Mahawar 2d03c22980 Added a readme to clarify where internal vs. public documents should go. 2016-05-11 15:19:17 -07:00
TingLiu6 0b97247cbf Add Unit Test for Remove-TypeData 2016-05-10 02:57:01 -07:00