Commit Graph
71 Commits
Author SHA1 Message Date
Steve Lee e2dc0eafbc build: Enable building for win-arm and win-arm64 (#5524)
* enable win-arm and win-arm64 builds

* fix using arm64 tools for build
fix finding vs2017 dynamically

* change install-powershellremoting.ps1 script to use reg provider rather than reg.exe so that error doesn't show on success
fix formatting issue in cmake.defs

* add check that path being read from config file is valid
address PR feedback

* fix copying of PowerShell.Core.Instrumentation as VS2017 puts it in $HOME/source
address PR feedback
2017-12-10 10:29:53 -08:00
Chris 724095e39f Remove PerformWSManPluginReportCompletion from pwrshplugin.dll (#5498)
This resolves issue #5391, which is tagged with 6.0.0-GA, therefore this should help with getting pwsh out of the door in January.

It removes PerformWSManPluginReportCompletion as stated in the issue and its associated class member g_pPluginContext, which is now unused as well.

The best reviewer is probably @mirichmo , who raised the initial issue with very helpful descriptions or @dantraMSFT who is currently assigned to the issue.
2017-11-28 17:53:57 -08:00
Steve Lee 4bc52d2358 Use consistent '(c)' for copyright symbol (#5210)
- Remove the year about copyright
- Fix casing of `All rights reserved`
- Replace Unicode characters representing single quote with a single quote
2017-10-26 14:12:19 -07:00
Steve Lee 2cc091115b Rename powershell.exe to pwsh.exe (#5101)
- Rename powershell.exe to pwsh.exe
- Fixe appveyor.psm1
- Update MSI to include 'pwsh' in path and app paths
- Revert change for hyper-v powershell direct
- Update names in packaging.psm1.
- Fix check for SxS
2017-10-17 17:25:11 -07:00
Dongbo Wang 55ce5dc86e Update script to get PSVersion from $PSVersionTable (#5045)
* Update script to get PSVersion from $PSVersionTable

* Address feedback

* Address cleanup comments

* Add back 'Remove-Item .\$fileName'

* Add the comment back too
2017-10-09 16:13:15 -07:00
Dongbo Wang a4b8dd0a23 Remove Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll (#4868)
The code in `AssemblyLoadContext.dll` doesn't need to be in a separate DLL anymore.
S.M.A.dll depends on `AssemblyLoadContext.dll`, so keeping that code out of S.M.A.dll doesn't help make S.M.A smaller size or less dependent. So the code in `AssemblyLoadContext.dll` is moved to `S.M.A.dll` and then we remove `AssemblyLoadContext.dll`.

The changes are:
- Move `CorePsAssemblyLoadContext.cs` to `src\S.M.A\CoreCLR\`
- Update `CorePsAssemblyLoadContext.cs` to get the test took moved to `Utils.InternalTestHooks` and update tests
- Update `build.psm1` and `.csproj` accrodingly
- Update `pwrshcommon.cpp` to remove `AssemblyLoadContext.dll` from the TPA list.
- `S.M.A.AssemblyExtensions` is removed as `PackageManagement` has finished their move to .NET Core 2.0. (I will work with Bryan to get the latest version uploaded to powershell-core)
2017-09-29 17:26:55 -07:00
Dongbo Wang 7762d7bf49 clean up map.json related files and scripts (#4532)
* clean up map.json related files and scripts

* Update .spelling
2017-08-10 13:32:19 -07:00
Mike Richmond 24cf216607 Add Missing Assemblies to TPA List for Pwrshplugin.dll (#4502) 2017-08-07 09:11:12 -07:00
Dongbo Wang 6bb12c9df5 Update native code to not call into PSAssemblyLoadContext (#3973) 2017-06-12 17:44:13 -07:00
George Chakhidze 47ec6b2a86 Use IntPtr(-1) for INVALID_HANDLE_VALUE instead of IntPtr.Zero (#3544)
- Fix incorrect handling of 'GetCurrentProcess()' API return value in 'IsWow64()' function (MainEntry.cpp)
- Remove unused INVALID_HANDLE_VALUE field from 'ProcessNativeMethods' class (Process.cs)
2017-04-13 17:00:56 -07:00
Mike Richmond cac96e5fc9 Fixing powershell.exe lib paths and more thoroughly cleaning the powershell-native directory (#2758) 2016-11-21 16:55:03 -08:00
Mike Richmond 71da6b6e26 Add x86 support to the remoting install script 2016-11-18 16:35:16 -08:00
Mike Richmond 81b2339979 Add support to build x86 packages for PowerShell Core 2016-11-18 16:35:16 -08:00
Mike Richmond a659a95a00 Fixing the plugin install directory to refect the current version (#2539) 2016-10-26 15:25:09 -07:00
Josh Soref c99929af81 spelling: display g_MANAGED_METHOD_RESOLUTION_FAILED 2016-09-01 13:35:02 +00:00
Josh Soref 67c5cf8b6e spelling: locals in src/powershell-native 2016-09-01 13:51:21 +00:00
Josh Soref eb3fd7ae6c Spelling comments (#2066)
* spelling: comments in src/Microsoft.Management.Infrastructure.CimCmdlets

* spelling: comments in src/Microsoft.PackageManagement.ArchiverProviders

* spelling: comments in src/Microsoft.PackageManagement.CoreProviders

* spelling: comments in src/Microsoft.PackageManagement.MetaProvider.PowerShell

* spelling: comments in src/Microsoft.PackageManagement.MsiProvider

* spelling: comments in src/Microsoft.PackageManagement.MsuProvider

* spelling: comments in src/Microsoft.PackageManagement.NuGetProvider

* spelling: comments in src/Microsoft.PackageManagement.PackageSourceListProvider

* spelling: comments in src/Microsoft.PackageManagement

* spelling: comments in src/Microsoft.PowerShell.Activities

* spelling: comments in src/Microsoft.PowerShell.Commands.Diagnostics

* spelling: comments in src/Microsoft.PowerShell.Commands.Management

* spelling: comments in src/Microsoft.PowerShell.Commands.Utility

* spelling: comments in src/Microsoft.PowerShell.ConsoleHost

* spelling: comments in src/Microsoft.PowerShell.Core.Activities

* spelling: comments in src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext

* spelling: comments in src/Microsoft.PowerShell.CoreCLR.Eventing

* spelling: comments in src/Microsoft.PowerShell.Diagnostics.Activities

* spelling: comments in src/Microsoft.PowerShell.GraphicalHost

* spelling: comments in src/Microsoft.PowerShell.LocalAccounts

* spelling: comments in src/Microsoft.PowerShell.Management.Activities

* spelling: comments in src/Microsoft.PowerShell.PSReadLine

* spelling: comments in src/Microsoft.PowerShell.PackageManagement

* spelling: comments in src/Microsoft.PowerShell.ScheduledJob

* spelling: comments in src/Microsoft.PowerShell.Security.Activities

* spelling: comments in src/Microsoft.PowerShell.Security

* spelling: comments in src/Microsoft.PowerShell.Utility.Activities

* spelling: comments in src/Microsoft.PowerShell.Workflow.ServiceCore

* spelling: comments in src/Microsoft.WSMan.Management.Activities

* spelling: comments in src/Modules

* spelling: comments in src/Schemas

* spelling: comments in src/libpsl-native

* spelling: comments in src/powershell-native

* spelling: comments in build.psm1

* spelling: comments in src/System.Management.Automation/CoreCLR

* spelling: comments in src/System.Management.Automation/DscSupport

* spelling: comments in src/System.Management.Automation/cimSupport

* spelling: comments in src/System.Management.Automation/commands

* spelling: comments in src/System.Management.Automation/engine/Modules
2016-08-26 13:46:03 -07:00
Jason Shirk 8b056776c0 Stop using 'Open PowerShell' and OPS in code (#1838) 2016-08-16 17:03:34 -07:00
Mike Richmond 85927cc79b Removed DefaultParameterSetName since it was unused. 2016-08-12 15:35:02 -07:00
Charu fd94e7c6f8 Fixing remoting install script so that it parses the verison number from powershell.version 2016-08-12 14:35:43 -07:00
Mike Richmond 5baa2d6fe6 Fixing onecore.lib link issue 2016-08-10 21:45:45 -07:00
Mike Richmond a951e1b737 Fixing compile issue for FullClr and adding restart so that the WinRM changes take effect after the registration script runs. 2016-08-10 20:48:47 -07:00
Mike Richmond 46c3ff9f3e Fixing CMakeLists.txt files to produce a single plugin DLL that works in all supported OSs the same way CoreCLR builds coreclr.dll 2016-08-10 20:48:47 -07:00
Mike Richmond afe86d6bd7 Work in progress to modify the native binary CoreCLR build. 2016-08-10 20:48:47 -07:00
Mike Richmond 6f8794d835 Correcting the fix to work with inbox PS 2016-08-09 13:23:33 -07:00
Mike Richmond 0544bc2baf Fixing load of ALC.dll so it is only included in the TPA list once for side-by-side scenarios. 2016-08-09 13:23:33 -07:00
Mike Richmond abb8e1ed36 Fixing capitalization of Copy-Item. 2016-08-08 09:38:43 -07:00
Mike Richmond 73ea16f23c Adding WinRM registration script and pwrshplugin publishing. 2016-08-08 09:38:43 -07:00
Mike Richmond 419db0e832 Removing dependency on JSON .Net for FullClr 2016-08-04 13:15:34 -07:00
Mike Richmond 33c1f2db23 Fixing execution policy so test automation works 2016-08-04 13:15:34 -07:00
Dongbo Wang 43bda97c98 Make the assembly version of AssemblyLoadContext.dll to be 3.0.0.0, so that the ALC.dll from OPS can work with existing native hosts in NanoServer 2016-08-04 10:43:57 -07:00
Mike Richmond 19138f3f62 Fixing reverse PInvoke worker callback pointer structure layout to synchronize it between managed and unmanaged code. 2016-08-01 15:02:52 -07:00
Mike Richmond 156418ceab Fixing bug in pwrshplugin config file reader and wrapping mc.exe calls in vcvarsall.bat. 2016-07-22 15:04:46 -07:00
Sergei Vorobev f78c796175 Update src/powershell-native/.gitignore 2016-07-22 13:00:02 -07:00
Mike Richmond f68ec925d0 Fixing comment support for the ConfigFileReader 2016-07-19 16:41:13 -07:00
Mike Richmond 4e7f582d43 Adding ConfigFileReader back into the plugin and fixing it to more efficiently parse the configuration file. 2016-07-19 16:41:13 -07:00
Mike Richmond d7618d731d Additional fixes in preparation for review and pull request 2016-07-19 16:41:13 -07:00
Mike Richmond 4e349ddc2c Resolved link issues to run pwrshplugin.dll on Nano Server and Windows 10 2016-07-19 16:41:13 -07:00
Mike Richmond c3bf2547e6 Backing up changes where the CoreCLR version runs on Nano Server. It still has the pwrshplugin!WSManPluginStartup call issue. 2016-07-19 16:41:13 -07:00
Mike Richmond 77a26b6b77 Additional code changes and link fixes 2016-07-19 16:41:13 -07:00
Mike Richmond 8948aa7efb Initial changes to split the CMake project into a hierarchical set of CMakeLists.txt files 2016-07-19 16:41:13 -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
PowerShell Team 7ff3763a82 Copy missed native-powershell files from [SD:717473]
commit 559488db3
2016-07-06 11:34:27 -07:00
Sergei Vorobev 6841a501fa Add missed files for powershell-native in map.json 2016-07-06 11:34:03 -07:00
Sergei Vorobev bab296f67c Exclude native resources from pwrshplugin temporarely 2016-06-24 15:45:31 -07:00
Sergei Vorobev 5d9f3ad860 Update powershell-native\CMakeLists.txt with a fixed name of the library 2016-06-17 15:40:42 -07:00
PowerShell Team 9788e9a1c2 Copy pwrshplugin.def from [SD:715912]
commit 77eda78
2016-06-17 15:38:43 -07:00
Sergei Vorobev 92db3e5b74 Update powershell-native\map.json to include pwrshplugin.def 2016-06-17 15:37:46 -07:00
Sergei Vorobev e73e72484b Fix name for pwrshplugin 2016-06-17 14:27:09 -07:00
Sergei Vorobev 0e35dcd526 Temporerely disable SQM Telemetry in pwrshplugin 2016-06-17 14:21:09 -07:00