Andrew Schwartzmeyer
0afd4c2f98
Improve Start-PSPackage
...
- Now checks that previous Start-PSBuild was with -Publish
- Uses $script:Output automatically
- Uses /opt/microsoft/powershell on Linux per FHS
- Uses /usr/local/microsoft/powershell on OS X per FHS
- Specifies "--rpm-os linux" for RPM packages built elsewhere
- Creates symlink on demand for packaging
- Puts symlink in /usr/(local)/bin as it is expected to be in PATH
- Uses $Arguments array for better syntax
- Resolves #800
Note that if the target of the powershell symlink exists, `fpm` aborts
with a `utime` error on OS X.
2016-04-09 19:44:55 -07:00
Andrew Schwartzmeyer
865f174e22
Clean up comparison operators in build module
2016-04-09 18:56:14 -07:00
Andy Schwartzmeyer
244b41a974
Merge pull request #804 from PowerShell/andschwa/symbolic-target
...
Allow creation of symlink to non-existent target
2016-04-09 18:55:21 -07:00
Andrew Schwartzmeyer
3a43126a2e
Allow creation of symlink to non-existent target
...
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with `mklink` and `ln -s` respectively.
Note that targets for hard links must exist, thus we check specifically
for symbolic links.
Both the path globber in session state and the `New-Item` implementation
needed to be fixed to allow the target not to exist.
Resolves #801 .
Also enable symbolic link tests on Windows.
2016-04-09 18:45:23 -07:00
Andy Schwartzmeyer
be235b0f0b
Merge pull request #803 from PowerShell/andschwa/help-online
...
Fix Get-Help -Online
2016-04-09 18:20:27 -07:00
Andrew Schwartzmeyer
70c23dacd7
Fix Get-Help -Online
...
While Windows will automatically open a URL used as a process by
launching a browser, OS X needs to use `open <URL>`, and Linux needs to
use `xdg-open <URL>` (the most distribution-independent way).
Resolves #802 .
2016-04-09 18:05:49 -07:00
Andy Schwartzmeyer
76ad94d8a7
Merge pull request #798 from PowerShell/andschwa/pager
...
Respect PAGER variable and default to less on Linux
2016-04-08 22:04:57 -07:00
Andy Schwartzmeyer
5ec7eb46cb
Merge pull request #797 from PowerShell/andschwa/packages
...
Bump .NET Core packages
2016-04-08 22:04:43 -07:00
Andrew Schwartzmeyer
022a63c6d2
Fix whitespace in csharp/project.json
2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer
bd03b51c32
Respect PAGER variable and default to less on Linux
2016-04-08 21:52:14 -07:00
Andrew Schwartzmeyer
7ace2b6b64
Fix NuGet warnings by depending on NuGet.Packaging.Core
...
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer
feef62c5ea
Bump .NET Core packages to 24004
2016-04-08 21:50:24 -07:00
Andy Schwartzmeyer
fde82fdf46
Merge pull request #796 from PowerShell/vors/add-type
...
Make Add-Type work without a flat folder structure
2016-04-08 21:41:30 -07:00
Sergei Vorobev
bf1a2c8521
Make Add-Type work without a flat folder structure
...
- Get rid of the assumption that all framework assemlbies live in
the same place
- Enable build scenario (assemlbies are referenced directly from unpacked
nuget packages)
- Fix #766
- Re-enable Add-Type tests
2016-04-08 21:41:30 -07:00
Andy Schwartzmeyer
0db0360b63
Merge pull request #794 from PowerShell/andschwa/profile-name
...
Rename profile from PSL to Microsoft.PowerShellCore
2016-04-08 21:41:29 -07:00
Andy Schwartzmeyer
3f00751159
Merge pull request #792 from PowerShell/andschwa/assembly-load
...
Try Assembly.Load correctly
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer
6f45601a27
Rename profile from PSL to Microsoft.PowerShellCore
...
Final fix for #713 .
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer
839014b599
Try Assembly.Load correctly
...
This should resolve #791 .
Instead of checking if `Assembly.Load` returned null (it doesn't), check
if it threw `FileNotFoundException`, which it will if it doesn't find
the assembly.
2016-04-08 19:09:38 -07:00
Andy Schwartzmeyer
80b15f64e2
Merge pull request #789 from PowerShell/andschwa/host-module
...
Fix accidental mapping change
2016-04-08 18:39:36 -07:00
Andrew Schwartzmeyer
733cda385d
Fix accidental mapping change
...
Happened in programmatic update commit bfaad3f05
.
2016-04-08 18:09:09 -07:00
Andy Schwartzmeyer
a69ed31baf
Merge pull request #788 from PowerShell/andschwa/publish
...
Add Publish support to Start-PSbuild
2016-04-08 16:38:45 -07:00
Andrew Schwartzmeyer
ac157568d6
Publish on AppVeyor
...
So that the artifacts for Core PowerShell have the .NET Core
dependencies.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
d7233fc4d0
Remove import of Platform module from AppVeyor
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
92a34cba5f
Add Publish switch to Start-PSBuild
...
Note that it is mutually exclusive with `FullCLR` as libraries are not
publishable; only applications can be published.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer
f5a95a6ef5
Remove unsupported -Clean switch
...
Will put back when it is functional.
2016-04-08 16:25:53 -07:00
Andy Schwartzmeyer
a6a6ac7c36
Merge pull request #787 from PowerShell/andschwa/platform-module
...
Remove Microsoft.PowerShell.Platform
2016-04-08 16:07:38 -07:00
Andy Schwartzmeyer
3582bb4216
Merge pull request #786 from PowerShell/andschwa/remove-aliases
...
Fix aliases
2016-04-08 16:07:25 -07:00
Andrew Schwartzmeyer
73fe95feb8
Add tests for removal of aliases
2016-04-08 15:52:37 -07:00
Andrew Schwartzmeyer
b3521944ec
Fix Pester test
2016-04-08 15:23:38 -07:00
Andrew Schwartzmeyer
8c7174de10
Fix xUnit tests
2016-04-08 15:22:37 -07:00
Andrew Schwartzmeyer
13e0760e16
Fix build module for removal of Platform module
2016-04-08 15:13:50 -07:00
Andrew Schwartzmeyer
bcdad12c04
Fix tests for removal of Platform module
2016-04-08 15:13:01 -07:00
Andrew Schwartzmeyer
fffaf4cfe2
Remove Platform module
2016-04-08 15:11:33 -07:00
Andrew Schwartzmeyer
822244d261
Fix properties
...
Static but not const, go figure.
2016-04-08 15:08:16 -07:00
Andrew Schwartzmeyer
a082a02e6c
Add PowerShell variables corresponding to platform
...
This deprecates the Microsoft.PowerShell.Platform module and ensure that
IsLinux/OSX/Windows/Core variables are defined all throughout PowerShell.
2016-04-08 15:04:27 -07:00
Andrew Schwartzmeyer
49066d212a
Replace IsX method with IsCore property
2016-04-08 15:04:16 -07:00
Andrew Schwartzmeyer
f5410a18ce
Replace IsWindows method with property
...
And add *correct* IsLinux and IsOSX properties.
2016-04-08 14:54:41 -07:00
Andrew Schwartzmeyer
6f2110f38a
Replace use of IsLinux with IsWindows
...
So that IsLinux can stop being overloading for OS X.
2016-04-08 14:50:37 -07:00
Andrew Schwartzmeyer
5b3840f753
Deploy Platform module on all flavors
2016-04-08 13:38:08 -07:00
Andrew Schwartzmeyer
2bd274f5d7
Fix tests broken by removal of aliases
2016-04-08 13:36:54 -07:00
Andrew Schwartzmeyer
47a8ee5bcf
Remove A:...Z: drive functions on Linux / OS X
...
Resolves #612 .
2016-04-08 12:50:53 -07:00
Andrew Schwartzmeyer
7d9f439666
Remove conflicting aliases for Linux and OS X
...
The aliases which conflict with Linux native commands were consolidated
and removed with the pre-processor definition `LINUX`. Additionally,
several "conflicts" are purposefully kept and likewise consolidated.
They are kept because Bash itself stomps on the native commands with its
own built-ins, and so we're adopting the same behavior.
The `clear` and `more` aliases are edge cases where the functions they
call are already fixed for Linux, and so we keep these too.
Resolves #567 .
2016-04-08 12:50:47 -07:00
Andy Schwartzmeyer
d260131f4b
Merge pull request #783 from PowerShell/andschwa/rename-host
...
Rename Host to CoreConsoleHost
2016-04-08 12:10:14 -07:00
Andrew Schwartzmeyer
9288df09a1
Rename CoreConsoleHost host.cs Name
...
Fully resolve #713 .
2016-04-08 11:00:52 -07:00
Andrew Schwartzmeyer
bfaad3f057
Programmatic update of core console host rename
2016-04-08 10:59:41 -07:00
Andrew Schwartzmeyer
5abda1c223
Rename Host to CoreConsoleHost
...
To resolve part of #713 .
2016-04-08 10:57:57 -07:00
JumpingYang001
6e2190fc7d
Add Import-Alias Pester Unit test
2016-04-08 01:47:50 -07:00
Andy Schwartzmeyer
a5966a8618
Merge pull request #775 from PowerShell/UnitTest_Temp
...
Add Unit Tests for GetDateTest.cs and StartSleepTest.cs
2016-04-07 21:03:00 -07:00
Andy Schwartzmeyer
d58774b5a6
Merge pull request #778 from PowerShell/ExportAliasPesterUnitTest
...
Add Export-Alias Pester Unit Test
2016-04-07 21:01:56 -07:00
Andy Schwartzmeyer
6503f74bdd
Merge pull request #780 from PowerShell/andschwa/deprecate-build.sh
...
Deprecate build.sh script
2016-04-07 21:01:01 -07:00