Commit Graph
189 Commits
Author SHA1 Message Date
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
Andrew Schwartzmeyer 000206ac90 Bump framework to netstandard1.6
This is required to use the new .NET Core RTM packages, specifically the
`IEnumerable Append` API.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer 10ea1733e9 Update to .NET Core 1.0 packages 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 207d2b3195 Integrate changes from SD between [SD:715912] and [SD:717473] 2016-06-22 06:24:08 -07:00
Sergei Vorobev 713ddfdf05 Remove authors section from product project.json 2016-06-16 19:33:19 -07:00
Andrew Schwartzmeyer 9375b1f303 Downgrade packages to build 24027
This is the ancient build that Nano uses.
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer 8e7c2ca30b Sign all assemblies with key 2016-06-16 15:48:18 -07:00
Andy Schwartzmeyer acf2f58f26 Merge pull request #1120 from PowerShell/andschwa/merge-sd
Merge SD changeset 715912
2016-06-16 00:15:58 -07:00
Andrew Schwartzmeyer d2cb5610e1 Resurrect ArchitectureSensitiveAttribute
Removal was backed out in SD:712734
2016-06-15 18:02:03 -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
Andy Schwartzmeyer cd6b4e2ebc Merge pull request #1090 from PowerShell/scriptdebug
Fix Broken Powershell Debugging
2016-06-15 17:38:16 -07:00
Andrew Schwartzmeyer 2afe0a1ad3 Update SD file mappings
The `ConsoleTextWriter.cs` file had a case-sensitivity issue. The
`ArchitectureSensitiveAttribute.cs` and `nativemsh` files were deleted
in SD.
2016-06-15 15:45:12 -07:00
v-alexjo acd9249fe2 Added PORTABLE as define for debugging and reidented tests. 2016-06-15 12:33:11 -07:00
v-alexjo 72cd28c336 Moving debugging tests out of Set-PSBreakpoint tests 2016-06-15 12:32:10 -07:00
Andrew Schwartzmeyer b30aabc12b Revert string comparison changes
These comparisons did not need to be changed as the input path is not
modified. The normalized relate path created from the stack (if this
code path is taken) is created with the correct path separators.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer d162437b7b Remove string literals in registry provider 2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer 3262a4b3ec Fix GetDriveQualifiedPath for single root filesystems
Reverted to original code and fixed correctly.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer 3464f9aee3 Fix ExpandMshGlobPath for single root filesystems
Reverted to original code and fixed correctly.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer ee40426fb3 Fix path root comparisons for Linux
Assuming the path may not be normalized, to make PowerShell slash
agnostic in a filesystem whose "drive" is a '/' and a 'C:\', we need to
compare to both '/' and '\' for users of PowerShell's alternate path
separator on Linux ('\').
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer a8f93c3c64 Fix the alternate path separator for Linux
Because normalization of paths occurs through the location globber and
filesystem provider by way of `path.Replace(alternate, default)`,
changing the alternate path separator on Linux to be '\' instead of
.NET's '/' let's PowerShell be "slash agnostic."
2016-06-15 12:16:54 -07:00
Sergei Vorobev d92620dcf3 Move resgen artifacts from submodules into src subfolders
Submodule adds unnessesary complexity.
This commit removes dependency on pre-generated C# bindings.
Start-PsBuild -ResGen will call Start-ResGen.
It also has auto-detect logic to simplify first time expirience.
2016-06-15 10:34:10 -07:00