Commit graph

1459 commits

Author SHA1 Message Date
Andrew Schwartzmeyer 152b106375 Use Control-F/B for Right/Left arrow 2016-07-08 16:19:05 -07:00
Andrew Schwartzmeyer 7ae448f0b1 Blacklist control characters rather than whitelist 2016-07-08 16:17:32 -07:00
Andrew Schwartzmeyer 85aa47b489 Use Control-D for delete 2016-07-08 16:16:35 -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
Dongbo Wang 436b5c9f27 Exclude the P/invoke code that is not supposed to be in CoreCLR build 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 5dd5aaf007 ReadLineFromConsole improvements
Also more guarding in ReadLineSafe
2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer 68875f0942 Handle Ctrl-C while prompting 2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer 3572367c00 Implement ReadLineFromConsole for Linux 2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer 53a3b760cd Remove ReadLineSafe from known issues 2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer 50e31e68bb Implement ReadLineSafe for Linux
This uses System.Console instead of ConsoleControl to read keys into a
SecureString in a portable manner. The Windows implementation is left
untouched.
2016-07-08 13:48:51 -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 09f20879b8 Guard use of UseShellExecute in PackageManagement
To re-enable elevation, the process will need to fork. For now, don't
fail fatally.
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
Andy Schwartzmeyer 4f98ee7418 Merge pull request #1316 from PowerShell/jasonsh/psreadline_windows_fixes
Fix UNIX/Windows/CORE story for PSReadLine
2016-07-08 09:48:49 -07:00
Alex Jordan e8386bd4b9 changing logic around realpath in followsymlink 2016-07-07 15:46:58 -07:00
Alex Jordan 0dc248b6f9 changes to logic in followsymlink 2016-07-07 15:02:23 -07:00
Alex Jordan 2a6b32ce5b Refactored followsymlink 2016-07-07 14:54:47 -07:00
Alex Jordan 64496d7bcc adding check for symlink to followsymlink 2016-07-07 12:12:16 -07:00
Jason Shirk (POWERSHELL) c0b16d7bf5 Skip tone/duration on beep on LINUX 2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL) 372d69583f Only use CHAR_INFO on Windows
CHAR_INFO has 4 bits for ConsoleColor.  On Linux, ConsoleColor is sometimes -1 (unknown),
which is a 17th possible value for ConsoleColor, which can't be represented in CHAR_INFO.

To fix this, I've introduced a bigger type that gets converted to CHAR_INFO when necessary.
2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL) e79c62f9ec Introduce TTYConsole for UNIX 2016-07-07 12:07:52 -07:00
Jason Shirk (POWERSHELL) 8e234322c4 First stab addressing CORECLR vs. LINUX in PSReadLine 2016-07-07 12:07:52 -07:00
Dongbo Wang 704f320eff Add 'TraceCommandStrings.resx' back to CoreCLR build. TraceCommand cmdlets have been ported in Github. 2016-07-07 09:54:30 -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
Alex Jordan 86299552a1 Absolute filepath resolution for followsymlink 2016-07-07 09:31:08 -07:00
Indhu Sivaramakrishnan 75c0c3cb4d Merge pull request #1301 from PowerShell/insivara-ps
Defining workflows is broken on OPS on FullCLR
2016-07-06 17:11:51 -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
Indhu Sivaramakrishnan 2f3138e7bd Updated AssemblyVersion for Microsoft.PowerShell.Workflow.ServiceCore 2016-07-06 16:17: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
Sergei Vorobev 423decfbc4 Merge pull request #1292 from PowerShell/vors/powershell-native
Missed powershell native sources
2016-07-06 12:22:55 -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
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
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
Jason Shirk 9a6655c147 Merge pull request #1246 from PowerShell/andschwa/guard-rawui
Guard RawUI when TTY is non-existent
2016-07-01 17:20:03 -07:00
Andrew Schwartzmeyer f70c0c51c2 Use ConsoleControl on Windows 2016-07-01 17:01:07 -07:00
Andrew Schwartzmeyer c1168e1a24 Note that CursorSize throws on Windows when output is redirected 2016-07-01 16:46:44 -07:00
Andrew Schwartzmeyer c5df728176 Import PSReadLine change to throw when redirected
A similar change was made to the Source Depot fork of PSReadLine, and
the behavior is depended on in the ConsoleHost. The host always attempts
to load PSReadLine, because a future version of PSReadLine will support
redirected input/output, and until then, PSReadLine must throw so that
the host correctly falls back to Console.ReadLine().
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer 75777b42ee Check that switchKey isn't empty 2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer e3fd809d42 Normalize slashes in path given to --file
Since we don't yet have a canonical way to normalize paths, here is yet
another use of String.Replace (and this is how it happens).
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer 290cc2c2de Implement FlushInputBuffer 2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer 80486044d8 Guard use of throwable APIs in System.Console
This is reconciled with the .NET Core 1.0 Unix ConsolePal
implementation, with additional error handling for when System.Console
returns unusable values.
2016-07-01 14:36:15 -07:00
Sergei Vorobev 44c98fa946 Remove extra comma in powershell/project.json 2016-07-01 14:04:55 -07:00
Sergei Vorobev b7186b51f1 Fix typo in README.md 2016-07-01 13:20:04 -07:00
Sergei Vorobev cef3a9a3c9 Add missed export into Microsoft.WSMan.Management.psd1 2016-07-01 13:17:29 -07:00
PowerShell Team 1c1442f4af Copy missed format and types files from [SD:717473]
commit 559488db3
2016-07-01 13:16:54 -07:00
Sergei Vorobev afa9aba8f1 Add missed types and format files into src/Modules/map.json 2016-07-01 13:16:53 -07:00
Sergei Vorobev 1a98407ee2 Fix Pester call for FullCLR from appveyor.yml 2016-07-01 13:16:52 -07:00
Sergei Vorobev 1035ed30ec Move Modules related notes from internals.md into src/Modules/README.md 2016-07-01 12:20:48 -07:00
Sergei Vorobev afbf9dd2e1 Update project.json files to take Modules only from src/Modules 2016-07-01 12:20:48 -07:00
Sergei Vorobev 0c2ed6f124 Update Modules map.json files 2016-07-01 12:20:48 -07:00
Sergei Vorobev 7e9fcaef29 Move modules for Core in Module/Core 2016-07-01 12:20:48 -07:00
Sergei Vorobev e4e3206621 Move modules for Full in Module/Full 2016-07-01 12:20:48 -07:00
Sergei Vorobev 12111b0e6f Move modules shared between frameworks in Module/Shared folder 2016-07-01 12:20:48 -07:00
Sergei Vorobev 916d17e958 Fix Microsoft.PowerShell.ConsoleHost/map.json 2016-07-01 12:20:48 -07:00
Sergei Vorobev c1d1b52869 Exclude map.json files from copyToOutput and publishOptions 2016-07-01 12:20:48 -07:00
Sergei Vorobev b755212f5d Fix GetEventResources problem in Microsoft.PowerShell.Commands.Diagnostics
-Move logic about instantiating ResourceManager in one place
-Add CommonUtils.cs to CoreCLR build
-Update resources generation with dotnet cli naming pattern
2016-07-01 12:20:48 -07:00
Sergei Vorobev 8d22c75fe8 GetEventResources.txt into GetEventResources.resx for Microsoft.PowerShell.Commands.Diagnostics resources 2016-07-01 12:20:48 -07:00
Andy Schwartzmeyer b7f33f6822 Merge pull request #1255 from PowerShell/jasonsh/measure-object-fix
Fix Measure-Object -Property w/ wildcards
2016-07-01 10:25:11 -07:00
Jason Shirk (POWERSHELL) dc1d672a86 Fix Measure-Object -Property w/ wildcards
Fixes #1215
2016-06-30 18:16:37 -07:00
Jason Shirk 80be756e2a Merge pull request #1199 from PowerShell/jasonsh/split-path-qualifier
Revert Unix specific Split-Path -Qualifier code
2016-06-30 17:06:18 -07:00
Jason Shirk (POWERSHELL) 4269398379 Fix Split-Path -NoQualifier for Unix paths 2016-06-30 12:59:04 -07:00
Raghu Shantha [MSFT] 8f5d1f885a Resurect accidentally deleted files for PowerShellGet
The remove happened in eea998b4d
2016-06-30 12:08:06 -07:00
Sergei Vorobev 75ee763d32 Merge pull request #1245 from PowerShell/vors/types
Make DefineTypes aware of / as a path delimiter on non-windows systems
2016-06-30 10:29:43 -07:00
Andy Schwartzmeyer c688c4640a Merge pull request #1242 from PowerShell/andschwa/json-package
Downgrade Newtonsoft.Json package to 7.0.1
2016-06-30 09:20:48 -07:00
Raghu Shantha [MSFT] 5bb5c1c4c6 Merge pull request #1237 from PowerShell/quoct/powershellmetaproviderfix
Make PowerShellGet loaded for PackageManagement
2016-06-30 08:59:16 -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
Jason Shirk (POWERSHELL) bfc5b7e836 Revert Unix specific Split-Path -Qualifier code
The -Qualifier code for Split-Path made some incorrect assumptions:

* That a path only referred to the file system
* That drives cannot be used on Unix systems

These assumptions were both wrong, so I've reverted the change so we
do not have any Unix specific code in Split-Path now.

Fixes #1176
2016-06-29 14:12:29 -07:00
Quoc Truong e8fd91c5e6 Fix build break associated with adding PORTABLE to PackageManagementService 2016-06-29 14:09:46 -07:00
Andrew Schwartzmeyer e08c216c07 Downgrade Newtonsoft.Json package to 7.0.1
This is the same as on Nano.
2016-06-29 14:05:09 -07:00
quoctruong 5fcd59db92 use PORTABLE instead of commenting out code 2016-06-29 12:40:25 -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
Dongbo Wang 297eda9721 Filter Assembly.Load requests to let the default context load TPAs 2016-06-29 09:50:41 -07:00
quoctruong eea998b4df Make PowerShellGet loaded for PackageManagement 2016-06-29 09:33:47 -07:00
Andrew Schwartzmeyer 2360d1ef46 Filter runtime assemblies out of custom context 2016-06-28 19:19:55 -07:00
Andrew Schwartzmeyer 5a29df50f1 Re-enable assembly load handler in CompletionCompleters 2016-06-28 18:31:38 -07:00
Dongbo Wang 03c99586a4 Update ALC to work in publish scenario 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 fdfd02ccda Remove TPA list work-around 2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer c58c7d3543 Assert basePaths was not null 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
PowerShell Team 716459bfbf Copy Maml xsd schema files from [SD:717473]
commit 559488db3
2016-06-28 16:27:03 -07:00
Sergei Vorobev 97e73d16ba Add map.json for Maml xsd schema files 2016-06-28 16:26:32 -07:00
PowerShell Team 3072b466ac Copy CimCmdlets.psd1 files from [SD:717473]
commit 559488db3
2016-06-28 16:16:00 -07:00
Sergei Vorobev 96950e1c8e Add CimCmdlets.psd1 into src/Modules/map.json 2016-06-28 16:15:38 -07:00
PowerShell Team 85f53d3d0b Copy PSWorkflow files from [SD:717473]
commit 559488db3
2016-06-28 15:53:19 -07:00
Sergei Vorobev a640f69dd5 Add PSWorkflow files into map.json 2016-06-28 15:48:59 -07:00
Sergei Vorobev 5f5cd74f37 Move map.json for Microsoft.PowerShell.ConsoleHost\Modules in subfolder 2016-06-28 15:44:01 -07:00
Sergei Vorobev 05a703f535 gitignore CorePsTypeCatalog.cs 2016-06-28 15:07:46 -07:00
Sergei Vorobev 055185440d Merge pull request #1226 from PowerShell/vors/build
Add simple test for non-empty workflow, make it work
2016-06-28 14:54:07 -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 c4f268f7cd Add simple test for non-empty workflow, make it work 2016-06-28 12:59:25 -07:00
Andrew Schwartzmeyer 5e3150f429 Use Start-TypeGen to generate type catalog dynamically 2016-06-28 12:57:44 -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
Sergei Vorobev 9eda67b00c Remove IsReadOnlyCaretVisible property from HelpWindow.xaml
Reason: msbuild v4 cannot resolve it
2016-06-27 17:01:07 -07:00
Andrew Schwartzmeyer 36df477c01 Update type catalog without MMI 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer 5744ca7b80 Exclude MMI packages from type catalog parser
Newtonsoft.Json will be excluded at a later date.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer a3a0bb9a62 Add NETStandard.Library to CoreCLR.Eventing
As a bottom-level dependency, it always needed it. The alternative is
hunting down every particular dependency, but that's what the
meta-package is useful for.
2016-06-27 15:30:47 -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 8be714ff68 Update CorePsTypeCatalog for new packages 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer bf6b5be10d Use Microsoft.DotNet packages available on NuGet 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer d2aef87029 Depend on SecureString 4.0.0 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer f21618f119 Remove SecureString stub project 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer 3f8fecd0dc Port TypeCatalogGen to .NET Core 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 e8b8b22c4e Removing remaining centos.7.1 RIDs
This should have been done programmatically.
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
Sergei Vorobev eb823a75a2 Make Microsoft.PowerShell.Activities/Xamls compatible with msbuild v14 2016-06-24 15:45:31 -07:00
Sergei Vorobev bab296f67c Exclude native resources from pwrshplugin temporarely 2016-06-24 15:45:31 -07:00
Sergei Vorobev 7498c20aa3 build.psm1 changes for Activities dlls
- Add Start-PSBuild -Clean
- Normalize $env:PATH references in .\build.psm1
- Add more logging in Resolve-Xaml for troubleshooting
- Always use msbuild from the Microsoft.NET v4.0.30319
- Rename Resolve-Xaml into Start-XamlGen for consistency with Start-TypeGen and Start-ResGen
- Disable pwrshplugin build temporarely
2016-06-24 15:45:31 -07:00
Sergei Vorobev f81b5a5f6e Add *.Activities dlls in Full build
- Add activities as a dependency to ConsoleHost
- This creates a minor ambiguity in the type resolution in ConsoleHost.
  We are specifying a namespace name to workaround it.
2016-06-24 15:45:31 -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 dfea5de391 Merge pull request #1172 from PowerShell/dongbo/bump_wsman_mgmt_version
Bump the version of dependent WsMan.Mgmt nuget package to 1.0.1-rc1
2016-06-22 00:14:22 -07:00
Dongbo Wang 456a571d24 Bump the version of dependent WsMan.Mgmt nuget package to 1.0.1-rc1 2016-06-21 22:12:13 -07:00
Sergei Vorobev 44be44e195 Revert GetComputerInfoCommand.cs to source-depot state 2016-06-21 19:02:28 -07:00
Sergei Vorobev 3769dbc1f0 Add GraphicalHost as net451 dependency to ConsoleHost 2016-06-21 18:32:22 -07:00
Sergei Vorobev 2ffbfe41d6 Make Microsoft.PowerShell.GraphicalHost buildable
-Exclude *Button files
-Remove unnessasary namespace specifier for resources
2016-06-21 18:32:20 -07:00
PowerShell Team 2726a38520 Copy Microsoft.PowerShell.GraphicalHost from [SD:715912]
commit 570d318
2016-06-21 18:32:08 -07:00
Sergei Vorobev 881cf0e1ed Add project, map and AssemlbyInfo.cs for GraphicalHost
- Add xaml files to Microsoft.PowerShell.GraphicalHost\map.json
- Add references into project.json file
- Known issue: ExpanderButtonAutomationPeer.cs is excluded from the build
2016-06-21 18:31:54 -07:00
Dongbo Wang 6adbda9c37 Add project.json files for Activities.dlls 2016-06-21 15:25:24 -07:00
PowerShell Team 913be6bccf Add source files for Microsoft.WSMan.Management.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team 0234b9435d Add source files for Microsoft.PowerShell.Utility.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team 4f2eb80963 Add source files for Microsoft.PowerShell.Security.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team a521fcf878 Add source files for Microsoft.PowerShell.Management.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team 800abb6203 Add source files for Microsoft.PowerShell.Diagnostics.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team e0a2323d18 Add source files for Microsoft.PowerShell.Core.Activities 2016-06-21 15:19:34 -07:00
PowerShell Team f63b574f12 Add source files for Microsoft.PowerShell.Activities 2016-06-21 15:19:34 -07:00
Dongbo Wang a9d8ea89df Add map.json files for Activities.dlls 2016-06-21 15:19:34 -07:00
PowerShell Team 5790595da3 Copy Microsoft.PowerShell.ODataUtils from [SD:715912]
commit 570d318
2016-06-20 17:23:37 -07:00
Sergei Vorobev f4ff460b9f Add OdataUtils to map.json 2016-06-20 17:22:54 -07:00
PowerShell Team 5f87828710 Copy ControlPanelItemCommand.cs from [SD:715912]
commit 77eda78
2016-06-20 15:29:51 -07:00
Sergei Vorobev cafc4fe1d0 Add ControlPanelItemCommand.cs into map.json and exclude from build 2016-06-20 15:29:51 -07:00
Sergei Vorobev a966d8dc7d Merge pull request #1158 from PowerShell/vors/windows-build
Remove src/windows-build submodule
2016-06-20 15:19:28 -07:00
Raghu Shantha [MSFT] 45c6f9125b Merge pull request #1157 from PowerShell/RaghuS-PackageManagementModule
Enable PackageManagement module in PS module store
2016-06-20 15:03:19 -07:00
Sergei Vorobev 607448cd18 Remove src/windows-build submodule 2016-06-20 14:39:39 -07:00
Sergei Vorobev 09238a9f1a Merge pull request #1148 from PowerShell/vors/pwrshplugin
Add pwrshplugin into windows build
2016-06-20 13:43:54 -07:00
PowerShell Team 0b2d362220 Enable PackageManagement module in OPS module store 2016-06-20 13:37:54 -07:00
Andy Schwartzmeyer 784978a9dd Merge pull request #1154 from PowerShell/andschwa/build-module
Better CentOS 7 support
2016-06-20 13:37:52 -07:00
Andrew Schwartzmeyer 0cdc7cfc7e Use COMPILE_FLAGS instead of add_compile_options
The latter came with CMake 2.8.12, and CentOS comes with 2.8.11, so we
need to use a more compatible method. Also bump the minimum required
version now that it is properly known.
2016-06-20 12:44:55 -07:00
Quoc Truong f9a801f50b Add project.json for PackageManagement assemblies and make it build 2016-06-20 11:46:21 -07:00
PowerShell Team 5361c16aaf Add mapped files for all PackageManagement assemblies 2016-06-20 11:40:23 -07:00
Quoc Truong d8a7ca9f70 Add map.json for all PackageManagement assemblies 2016-06-20 11:38:19 -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 c3f64eb7b7 Merge pull request #1147 from PowerShell/dongbo/workflow
Build Microsoft.PowerShell.Workflow.ServiceCore.dll in Github for Full PS
2016-06-17 15:15:35 -07:00
Sergei Vorobev cfb8765a6e Merge pull request #1140 from PowerShell/vors/typegen
TypeGen enhancements
2016-06-17 15:05:48 -07:00
Dongbo Wang a779d92fba Bump windows-build submodule version for including CimCmdlets nuget package 2016-06-17 14:57:17 -07:00
Dongbo Wang da69dc921f Update project.json for Microsoft.PowerShell.ConsoleHost to depend on Microsoft.PowerShell.Workflow.ServiceCore 2016-06-17 14:54:54 -07:00
Dongbo Wang 16c2c292a7 Add project.json for Microsoft.PowerShell.Workflow.ServiceCore 2016-06-17 14:53:09 -07:00
PowerShell Team d9b41bf9bf Add source files for Microsoft.PowerShell.Workflow.ServiceCore 2016-06-17 14:53:09 -07:00
Dongbo Wang de058e096a Add map.json for Microsoft.PowerShell.Workflow.ServiceCore 2016-06-17 14:53:09 -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
Sergei Vorobev ef96336d1f Add Release/ entry to .gitignore in powershell-native project 2016-06-17 14:20:31 -07:00
PowerShell Team 71835813aa Copy pwrshplugin native code from [SD:715912]
commit 77eda78
2016-06-17 14:10:17 -07:00
Sergei Vorobev d24bf35c22 Add pwrshplugin to cmake build 2016-06-17 14:09:00 -07:00
Sergei Vorobev 299d7798ce Merge pull request #1136 from PowerShell/vors/scheduledjobs
PSScheduledJobs Module
2016-06-17 11:26:24 -07:00
Sergei Vorobev b374e2fd06 Add Start-TypeGen
Update Microsoft.PowerShell.CoreCLR.AssemblyLoadContext\project.json
Include Crypto package for new source code
2016-06-17 11:23:29 -07:00
Sergei Vorobev 38ce6d4616 remove comments from project.json per request 2016-06-17 10:56:34 -07:00
PowerShell Team 67ef887900 Add new file AssemblyMetadataHelper.cs from [SD:715912]
commit 77eda78
2016-06-17 08:14:02 -07:00
Sergei Vorobev 90e14b402c Update map.json with AssemblyMetadataHelper.cs 2016-06-17 08:13:33 -07:00
PowerShell Team 838ad202fa Add missed resx file from [SD:715912] commit 77eda78 2016-06-17 06:24:57 -07:00
Sergei Vorobev c0db699e83 Add missed resx file into map.json 2016-06-17 06:24:12 -07:00
Sergei Vorobev 713ddfdf05 Remove authors section from product project.json 2016-06-16 19:33:19 -07:00
Sergei Vorobev 713d4072b3 Make Microsoft.PowerShell.ScheduledJob part of build for FullCLR 2016-06-16 19:30:52 -07:00
Sergei Vorobev 7cd6a76479 Add project.json for ScheduledJob, add test that we build PSScheduledJob module 2016-06-16 19:20:35 -07:00
Sergei Vorobev ff67c73c48 Bump src/windows-build submodule version 2016-06-16 19:20:35 -07:00
PowerShell Team 552354e4e2 Copy PSScheduledJob sources from psl-monad [SD:715912]
commit 77eda78
2016-06-16 19:20:35 -07:00
Sergei Vorobev 9fc3ab26ff Update map.json to have PSScheduledJob 2016-06-16 19:20:35 -07:00
Sergei Vorobev 8bd91a1897 Add map.json for Microsoft.PowerShell.ScheduledJob 2016-06-16 19:20:35 -07:00
Andrew Schwartzmeyer ef79e12245 Bump windows build with new MMI/MMIN packages 2016-06-16 15:48:19 -07:00
Andrew Schwartzmeyer 10f2d48f60 Use CentOS 7, not 7.1 RID 2016-06-16 15:48:18 -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
Sergei Vorobev c60c749290 Merge pull request #1121 from PowerShell/vors/bits
Fixes for local-account and process
2016-06-16 09:19:06 -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
Sergei Vorobev ee4d6ab8b3 Move LocalAccounts ps1xml, psd1 files on the filesystem 2016-06-15 19:25:28 -07:00
Sergei Vorobev 2cb0461b3d Move LocalAccounts ps1xml, psd1 files from powershell/map.json to Modules/map.json 2016-06-15 19:19:23 -07:00
Sergei Vorobev 05ecfd33d3 Fix indentation in project.json 2016-06-15 19:18:08 -07:00
Sergei Vorobev 979610035a Update .gitignore 2016-06-15 18:59:06 -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
Andy Schwartzmeyer d9b11669ce Merge pull request #1119 from PowerShell/andschwa/fix-casing-again
Fix casing again
2016-06-15 16:51:36 -07:00
Sergei Vorobev 42cca87b3b Merge pull request #1111 from PowerShell/cchen/diagnostics
adding microsoft.powershell.diagnostics.dll to build
2016-06-15 16:09:07 -07:00
Andrew Schwartzmeyer f83d375f26 Fix casing again 2016-06-15 15:58:45 -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
PowerShell Team 549eb64da9 Copy resources files for Microsoft.PowerShell.Commands.Diagnostics [SD:714215]
Commit 2e2daeaff52930d981a31e0030d7161c4b45cc48
2016-06-15 15:32:21 -07:00
Sergei Vorobev 37e78656af Fix project.json and map.json in Microsoft.PowerShell.Commands.Diagnostics 2016-06-15 15:30:38 -07:00
Chunqing Chen d578e5f426 update project.json for consolehost to include microsoft.powershell.diagnostic 2016-06-15 15:27:06 -07:00
Chunqing Chen 7f7ce0617c Fix project.json in diagnostics 2016-06-15 15:27:06 -07:00
PowerShell Team 4e4a07c5e8 Copy files for Microsoft.PowerShell.Commands.Diagnostics [SD:714215]
Commit 2e2daeaff52930d981a31e0030d7161c4b45cc48
2016-06-15 15:27:06 -07:00
Chunqing Chen 61ea879f73 Add AssemblyInfo for Diagnostics 2016-06-15 15:27:06 -07:00
Chunqing Chen 29271ec2d7 Add map.json to src/Microsoft.PowerShell.Commands.Diagnostics 2016-06-15 15:27:06 -07:00
Chunqing Chen d1015eddb2 Add project.json to src/Microsoft.PowerShell.Commands.Diagnostics/project.json 2016-06-15 15:27:06 -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
Andrew Schwartzmeyer 4b3b48adec Remove resgen artifacts
This has been deprecated by building these files on the fly using a
template in PowerShell, instead of using the resgen Windows-only binary.
2016-06-15 11:20:19 -07:00
Sergei Vorobev 65acf49845 Replace aliases by full names to fix build 2016-06-15 10:34:10 -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
Sergei Vorobev c7af71ed0e Merge pull request #1107 from PowerShell/andschwa/exclude-files
Remove CORECLR guards
2016-06-14 22:00:27 -07:00
Dongbo Wang cae7b925a1 Bump windows-build submodule version for LocalAccounts 2016-06-14 17:04:58 -07:00
PowerShell Team 802630c261 Add source files for Microsoft.PowerShell.LocalAccounts [SD:709776]
Commit 15b1623
2016-06-14 17:02:50 -07:00
Dongbo Wang 1829beb917 Fix map.json for LocalAccounts 2016-06-14 16:59:38 -07:00
Dongbo Wang d33cb11439 Update project.json files to build Microsoft.PowerShell.LocalAccounts 2016-06-14 16:56:05 -07:00
Dongbo Wang e64773d446 Add map.json for LocalAccounts 2016-06-14 16:55:46 -07:00
Andrew Schwartzmeyer d16cfbd04f Work-around dotnet bug
The include must be duplicated because the root `buildOptions` is not
being applied "whenever compiling the project."
2016-06-14 16:21:36 -07:00
Andrew Schwartzmeyer 01f1c5348d Exclude FullCLR files from CoreCLR build 2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer 047525aa9d Revert unnecessary changes 2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer 69ce0e7107 Revert CORECLR guard from FullCLR files
This reverts the `if !CORECLR ... #endif` guard surrounding FullCLR
files by applying the original diff from the `source-depot` branch, thus
the accidentally overwritten BOMs were restored as well.
2016-06-14 16:06:48 -07:00
Sergei Vorobev 85e2ecd504 Add new map.json files 2016-06-13 17:39:11 -07:00
Andrew Schwartzmeyer 2639f2a8ae Use include key in copyToOutput and publishOptions
While the schema says that a `string[]` will be picked up as if `{
"include" : [ ... ] }` was used, it does not. This is a .NET CLI bug.
2016-06-10 13:00:33 -07:00
Andrew Schwartzmeyer 9b2be207f7 Don't attempt to publish any profiles
PowerShell does not ship with any default profiles.
2016-06-10 12:44:18 -07:00
Andrew Schwartzmeyer 44f3fb1211 Update content to copyToOutput and publishOptions
These must be duplicated as we require the same files for both `build`
and `publish`. This is the requirement of the new schema, as `content`
was split.

Note that while each key can take an object, if given just a `string[]`
as we do here, it defaults to `include`.

See the new schema: https://github.com/aspnet/Announcements/issues/175
2016-06-10 12:41:26 -07:00
Andrew Schwartzmeyer 1a1de1d4a0 Remove unnecessary LINUX configuration from Commands.Utility 2016-06-10 11:52:35 -07:00
Andrew Schwartzmeyer e61d698bbc Remove NOETW in favor of LINUX
ETW is available on Windows, so this is only (and will always be)
necessary for Linux.
2016-06-10 11:49:40 -07:00
Andrew Schwartzmeyer 80aceb7a8a Move compile data to build options 2016-06-10 11:15:37 -07:00
Andrew Schwartzmeyer e3056303aa Rename compilationOptions to buildOptions in project.json files
This resolves #928. This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Sergei Vorobev 32b90c048a Remove Microsoft.PowerShell.Diagnostics from default Snapins on LINUX 2016-06-10 07:16:33 +00:00
Andrew Schwartzmeyer 539f8696e5 XDG cache directory now guaranteed to exist 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer d5f6295042 Update ModuleAnalysisCache to use XDGBDS on Linux 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 0e10a51802 Whitespace and formatting cleanups 2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer 140d452ba2 Fix PSReadLine history path on Windows
Bug introduced in initial port of PSReadLine. `Path.Combine` sees the
initial backslash as an absolute path, thus discarding `AppData`.
2016-06-09 09:50:36 -07:00