Dongbo Wang
d0c60e049d
Avoid calling static members from 'Microsoft.Win32.Registry' on UNIX, especially the code that would run in TypeInitializer.
...
This is because with the latest .NET Core packages (1.1.0 preview), calling static members from 'Microsoft.Win32.Registry' will raise 'PlatformNotSupportedException'.
2016-10-14 10:02:44 -07:00
Francisco Gamino
d717458e7d
Fixing get-help <cmdletName> -online for .NET Core on Desktop. ( #2174 )
...
In PS Core on windows, we try to locate the default web browser and use it for online help. If we cannot find the default web browser (in NanoServer/IoT), we error out.
2016-10-12 12:16:32 -07:00
Charu Bassi
5cbf1b43de
Fix 'Get-ChildItem -Hidden' to work on system hidden files like c:\hiberfil.sys c:\pagefile.sys and c:\swapfile.sys
2016-09-27 16:13:03 -07:00
Josh Soref
c59e992c25
spelling: comments in src/System.Management.Automation/engine
2016-08-28 05:44:55 +00:00
Mike Richmond
18f3589d68
Fixing the path to the user's JSON configuration file
2016-08-23 15:45:49 -07:00
Dongbo Wang
ea9694980e
Address review comments in product code
2016-08-12 11:01:23 -07:00
Dongbo Wang
3ff19e1d80
Update module path calculation logic to support side-by-side.
...
Use 'Path.PathSeparator' instead of ';' to separate paths, so that it uses ';' on windows and ':' on unix.
Also refactor some code as part of the change.
2016-08-11 21:36:48 -07:00
Mike Richmond
33c1f2db23
Fixing execution policy so test automation works
2016-08-04 13:15:34 -07:00
Mike Richmond
f8b9b88986
Bug fixes and cleanup in preparation for push.
2016-08-04 13:15:34 -07:00
Mike Richmond
73689d697a
ExecutionPolicy is now working from JSON files
2016-08-04 13:15:34 -07:00
Jason Shirk
f15e66b283
Merge pull request #1633 from PowerShell/revert_psedition_namechange
...
Revert the changes made in #1457 . Desktop and Core are the PowerShell Edition names. Remove Linux as edition name.
2016-08-04 12:21:12 -07:00
Manikyam Bavandla
eacfd9418c
Revert "Merge pull request #1458 from PowerShell/psedition_rename"
...
This reverts commit 042d1e99bb , reversing
changes made to 105bf9c9ff .
2016-08-03 15:53:31 -07:00
PowerShell Team
85d6e9f022
Refactoring - adjust modifiers declaration order
2016-08-03 12:14:28 -07:00
PowerShell Team
bc4901bd59
Remove unused using statements
2016-08-03 12:06:06 -07:00
PowerShell Team
403ae3f53f
Initial run of code formatter
...
I (Jason Shirk) ran https://github.com/dotnet/codeformatter with the default rules, basically:
codeformatter /nocopyright "/c:DEBUG,UNIX,CORECLR" @files.rsp
This caused a few problems building, which were fixed up manually.
Notable changes:
`this.` is removed unless needed to disambiguate.
private instance fields are renamed to have a `_` prefix.
private static fields are renamed to have a `s_` prefix.
I left some projects alone (like PackageManagement) and also left some generated code alone.
2016-08-01 15:57:03 -07:00
Andrew Schwartzmeyer
f0e64c2c6c
Clean up ApplicationBase work-around
2016-07-26 11:49:54 -07:00
Andrew Schwartzmeyer
d40131ae44
Clean up PSMODULEPATH Windows work-around
2016-07-26 11:49:54 -07:00
Jason Shirk (POWERSHELL)
673dd2c355
Change preprocessor macro LINUX to UNIX
2016-07-22 10:49:45 -07:00
Manikyam Bavandla
81e5a7e7aa
Update PSEdition values to Rename Desktop & Core to WindowsPowerShell and PowerShellCore
...
$PSVersionTable.PSEdition currently supports Desktop and Core enums.
Because PowerShell is going to be Open and also available on Linux/Mac
from August, we decided to rename these values so as to make it clear to
the end user.
We decided to use the names WindowsPowerShell,PowerShellCore.
2016-07-20 18:30:21 -07:00
Andrew Schwartzmeyer
ad94ddb3f1
Guard IsWinPEHost
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
89508ae99d
Revert IsWinPEHost changes
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
662e390902
Remove Platform.HasGroupPolicySupport query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
2249afcd0a
Remove Platform.HasUNCSupport query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
73a1a51f69
Remove Platform.HasRegistry query
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
5ef851a170
Port NativeItemExists for Linux
...
Without using .NET
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
3dacf45789
Revert NativeItemExists changes from baseline
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
c17244eed2
Fix IsAdministrator for Unix
2016-07-13 15:46:25 -07:00
quoctruong91
35ac5999ac
Rename enum interface; Change location used in NuGetProvider to go up 1 level
2016-07-06 10:28:31 -07:00
Andrew Schwartzmeyer
2f892e8127
Use Marshal.ZeroFreeCoTaskMemUnicode
...
This removes the ClrFacade function of the same name as this API is in
.NET Core 1.0 Marhsal class, not SecureStringMarshal.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
97df59f553
Re-enable checking of assemblies with strong names
...
This removes the `UsesCodeSignedAssemblies()` switch in `CorePsPlatform`
and reverts the work-arounds skipping strong name checking.
2016-06-27 14:49:46 -07:00
PowerShell Team
8ee6d6ca43
Update files from Source Depot changeset [SD:715912]
...
Corresponds to 77eda782aa78ba8b7a36c51ee619629ce6c990f2 in psl-monad.
2016-06-15 18:02:03 -07:00
Andrew Schwartzmeyer
0e10a51802
Whitespace and formatting cleanups
2016-06-09 09:50:36 -07:00
v-alexjo
29e97bf1aa
Code review changes to XDG support
2016-06-09 09:50:36 -07:00
v-alexjo
54c64c9db6
Initial XDG support and folder default changes
...
Conflicts:
src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
2016-06-09 09:50:36 -07:00
PowerShell Team
b38773eb79
Update files from Source Depot changeset [SD:709766]
...
Corresponds to 15b1623435d6a195d1e877ba5c43709d991f573a in psl-monad.
2016-05-31 14:12:49 -07:00
Andrew Schwartzmeyer
a4ef2b7e8b
Add PSReadLine as base module
...
Note that, because Linux file systems are case-sensitive, we have to
use the correct capitalization that matches the actual module files.
2016-04-27 13:40: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
PowerShell Team
78a18c3f70
Revert "Update files from psl-monad"
...
This reverts commit 9ed2c2a68b .
This commit is here to make source-depot branch a parent of master
2016-04-06 12:03:50 -07:00
PowerShell Team
9ed2c2a68b
Update files from psl-monad
...
This commit uses psl-monad branch source-depot 28156300
And corresponds to [SD:692351]
2016-04-06 11:55:18 -07:00
Sergei Vorobev
8e4343e881
Merge remote-tracking branch 'origin/source-depot' into vors/master
2016-04-04 12:56:23 -07:00
PowerShell Team
5386c71bb2
Update files from psl-monad
...
This commit uses psl-monad branch source-depot cc6afbeb
And corresponds to [SD:692351]
2016-03-31 17:27:44 -07:00
PowerShell Team
45140c5752
Move files from psl-monad submodule to super-project
...
This commit uses master branch 860eb5d
2016-03-30 20:01:33 -07:00
PowerShell Team
60b3b304f2
Move files from psl-monad submodule to super-project
...
This commit uses psl-monad branch source-depot 7209cb9
And corresponds to [SD:688741]
2016-03-30 17:16:23 -07:00