Andrew Schwartzmeyer
093587fecb
Rename Native so it is Unix.NativeMethods
...
Like the rest of PowerShell.
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
6a23655b2f
Rename LinuxPlatform to Unix
...
Since it supports both Linux and OS X. This follows the .NET Core
convention.
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
551e2e6fc4
Format CorePsPlatform
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
77a9b4b5d2
Remove unnecessary throws in CorePsPlatform
2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
3dacf45789
Revert NativeItemExists changes from baseline
2016-07-14 17:34:12 -07:00
Sergei Vorobev
3e105225cf
Merge pull request #1375 from PowerShell/cchen/bugfix
...
msft:8027609 Get-Module -List and Test-ModuleManifest import the the …
2016-07-14 16:08:31 -07:00
Chunqing Chen
080f029d8a
msft:7980238, 7768797 Test-ModuleManifest loads all available modules if a module has the nested module dependencies. Get-Module -List and Test-ModuleManifest import the the nested module dependencies into the current runspace.
2016-07-14 13:21:28 -07:00
Chunqing Chen
bd0ba6771c
msft:8027609 Get-Module -List and Test-ModuleManifest import the the nested module dependencies into the current/global runspace.
2016-07-14 12:42:47 -07:00
Andrew Schwartzmeyer
2abe461992
Refactor to use GetUserFromPid
2016-07-13 15:46:25 -07:00
Andrew Schwartzmeyer
e6d3cbcce0
Implement Get-Process -IncludeUserName for Linux
...
So much plumbing. The correct way to identify the owner of a process on
Linux is to get the owner of the /proc/<PID> file. However, .NET Core
has no API to get this information, thus it had to be plumbed through to
the native library.
2016-07-13 15:46:25 -07:00
Andrew Schwartzmeyer
c17244eed2
Fix IsAdministrator for Unix
2016-07-13 15:46:25 -07:00
Travis Plunk
bf905966de
Fixed comments and white space issues
2016-07-12 14:38:19 -07:00
Travis Plunk
dc632bff96
Fixed unreachable code issue
2016-07-12 12:11:07 -07:00
Travis Plunk
9a9ff6f766
Removed language if statement no longer needed due to compiler if statement
...
Clarified comment
2016-07-12 11:27:31 -07:00
Travis Plunk
547d5da804
Made check blocking execution policy, only blocking (always returning true) on linux
2016-07-11 18:54:05 -07:00
Jason Shirk
5e1cbe0e5d
Merge pull request #1328 from PowerShell/dongbo/type-completion
...
Fix issue #682 - [system.manage<Tab>] doesn't work
2016-07-08 16:16:32 -07:00
adityapatwardhan
e1017523c1
Merge pull request #1327 from PowerShell/adityap/stackoverflow
...
Fix stackoverflow issue by using strongly typed resource names
2016-07-08 15:41:46 -07:00
Aditya Patwardhan
46b3a58c35
Fix stackoverflow issue by using strongly typed resource names
2016-07-08 15:01:35 -07:00
Dongbo Wang
81b92583e1
Fix #682 - [system.manage<Tab>] doesn't work
2016-07-08 14:18:20 -07:00
Dongbo Wang
da7f6ba3b2
Move the most recent changes about the ALC from SD to Github
2016-07-08 14:18:20 -07:00
Andrew Schwartzmeyer
50e6627a8e
Throw PlatformNotSupported on Windows .NET Core build
2016-07-08 14:08:22 -07:00
Andrew Schwartzmeyer
6200f084cd
Invoke-Item and Get-Help -Online are unsupported on Nano
...
These currently fail at runtime on Nano, and will continue to do so. But
this implements these much needed cmdlets for Open PowerShell.
If there is a way to determine that PowerShell is being run on the Nano
OS at runtime, then we could instead throw a platform unsupported
exception, but this cannot be based on the target compilation framework,
as .NET Core is shared for both Nano and Windows.
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
ef2ba40ca7
Use start in Invoke-Item to open items on Windows
...
Since `UseShellExecute` cannot be used.
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
afc1d8a459
Use start in Get-Help -Online to open URL on Windows
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
ce2e5d6492
Set UseShellExecute to false in Get-Help
2016-07-08 13:48:36 -07:00
Dongbo Wang
15fbd76df8
Exclude the unneeded gen/*.cs files from the build for each target framework
2016-07-07 09:32:21 -07:00
Dongbo Wang
2f9be46eac
Merge pull request #1285 from PowerShell/dongbo/miss-files-ops
...
Add back missing files for OPS
2016-07-06 16:54:16 -07:00
Dongbo Wang
c502b31509
Exclude the TimeZone/Computer/FileCatalog cmdlets for Linux. They use windows specific Win32 APIs
2016-07-06 13:04:51 -07:00
Dongbo Wang
b4641986a2
Update project.json files to exclude certain .resx files for each target framework
2016-07-06 13:04:31 -07:00
PowerShell Team
49fea9dac9
Add missing files for OPS [SD:717473]
2016-07-06 13:03:56 -07:00
Quoc Truong
862b7f4982
Merge pull request #1282 from PowerShell/quoct/fixnugetprovider
...
Expose Platform API from SMA and uses that in NuGetProvider
2016-07-06 12:15:59 -07:00
Alex Jordan
cc6dd39fa5
Merge pull request #1220 from PowerShell/invokeitem
...
Invoke-Item fix for Linux and OSX.
2016-07-06 10:30:30 -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
Alex Jordan
aefeb80108
Fixed scope issue in invokeitem
2016-07-05 18:20:02 -07:00
Dongbo Wang
b4089414de
Add back missing files to OPS -- map.json/project.json udpates
2016-07-05 16:18:24 -07:00
Alex Jordan
e580941667
UseShellExecute moved to OS guards for Invoke-Item
2016-07-05 16:05:58 -07:00
Andrew Schwartzmeyer
eac57de216
Fix use of Get-Command when more than one exists
2016-07-05 16:02:06 -07:00
quoctruong91
54784cb77a
Expose Platform API from SMA and uses that in NuGetProvider
2016-07-05 14:16:35 -07:00
Jason Shirk (POWERSHELL)
efc83bbaa2
Add csproj files and sln for editing but not building
2016-07-05 10:27:41 -07:00
Sergei Vorobev
db4b3a6083
Make DefineTypes aware of / as a path delimiter on non-windows systems
2016-06-29 14:28:09 -07:00
Alex Jordan
fd7a16778c
Fixed unknown char in comments
...
Cosmetic change.
2016-06-29 10:52:56 -07:00
Alex Jordan
eec3b334cc
Adding logic for invoke-item for non-Windows OSes
2016-06-29 10:52:56 -07:00
Andrew Schwartzmeyer
5a29df50f1
Re-enable assembly load handler in CompletionCompleters
2016-06-28 18:31:38 -07:00
Dongbo Wang
ca28391b38
Fix it for 'dotnet build' scenario
2016-06-28 18:31:38 -07:00
Dongbo Wang
66dcd00d93
Make AssemblyLoadContext a singleton and refactor
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
c78732d226
Remove ClrFacade.Load
...
Instead, rely on intercepting Assembly.Load
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
6356a5a778
Mimic InitializeDefaultLoadContext
2016-06-28 18:31:38 -07:00
Andy Schwartzmeyer
b294a46d2e
Merge pull request #1210 from PowerShell/andschwa/rtm
...
Update PowerShell to use .NET Core 1.0
2016-06-28 14:37:20 -07:00
Sergei Vorobev
e647549d0d
Exclude Microsoft.WSMan.Management from the list of default snapins
...
Fix #1180
2016-06-28 12:14:18 -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