Sergei Vorobev
db3274f103
Add dotnet-based resgen
2016-08-02 11:45:37 -07:00
Jason Shirk (POWERSHELL)
75eab56e21
csproj fixes
...
- add some missing references
- fix assembly name so InternalsVisibleTo works
2016-08-02 10:50:51 -07:00
Jason Shirk
9742b64170
Merge pull request #1591 from lzybkr/code_formatting
...
Code formatting
2016-08-01 16:46:05 -07:00
Jason Shirk (POWERSHELL)
c34ef6141b
Use nameof() where we use reflection
...
We use a lot of reflection, and when you rename a member (e.g. when running
the code formatter), it doesn't detect references where you're using reflection.
By using nameof(), we can now find these references (e.g. a build break) instead
of failing at runtime.
2016-08-01 15:58:17 -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
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
John Kordich
a0339d4a12
Linux DSC MOF compilation changes
2016-07-29 16:29:52 -07:00
Sergei Vorobev
e9606ac793
Change MMI package to alpha02
2016-07-29 12:24:02 -07:00
Quoc Truong
a56b29c3a0
Merge pull request #1557 from PowerShell/quoct/addpseditiontag
...
Add a tag to check for PSEdition for Find-Packageprovider
2016-07-29 11:38:51 -07:00
Dongbo Wang
034f9ba46d
Merge pull request #1570 from PowerShell/test/fix-master
...
Revert back to old MMI package, until we fix regression
2016-07-29 09:25:02 -07:00
Jason Shirk
0513425ff9
Merge pull request #1566 from PowerShell/andschwa/chars
...
Fix PSReadLine custom key binding on Linux
2016-07-29 09:10:10 -07:00
Sergei Vorobev
dcde9bd583
Revert back to old MMI package, until we fix regression
2016-07-29 08:49:33 -07:00
Sergei Vorobev
d5f3fd3f83
Fix Microsoft.PowerShell.GraphicalHost/map.json
2016-07-28 23:20:22 -07:00
Sergei Vorobev
3e6179112b
Fix Microsoft.PowerShell.Commands.Utility/map.json
2016-07-28 23:15:19 -07:00
Andrew Schwartzmeyer
59624e9b2f
Fix comparison for default ConsoleKey
2016-07-28 21:51:03 -07:00
Andrew Schwartzmeyer
554ef0b780
Use GetCharFromConsoleKey on Windows
...
Due to virtual key codes on Windows, simple chords like Ctrl+] are not
recognized as such. Instead, the ConsoleKey is Oem6, and the KeyChar is
an control code.
2016-07-28 21:51:02 -07:00
Andrew Schwartzmeyer
d5b339fb5d
Revert changes made to GetGestureString
...
Given the use of key.KeyChar, the original implementation is now
portable.
2016-07-28 21:35:19 -07:00
Andrew Schwartzmeyer
1facd95f1e
Implement TryParseCharLiteral for Linux
2016-07-28 21:35:19 -07:00
Andrew Schwartzmeyer
75b086402a
Remove GetCharFromConsoleKey
...
The ConsoleKey enum does not necessarily cover all possible chars.
Moreover, the times we need to obtain this info, we already have it.
2016-07-28 21:35:19 -07:00
Sergei Vorobev
0ac0f1962e
Replace Uri.UriSchemeHttps by https in PackageListParser
...
Uri.UriSchemeHttps is not available on CoreCLR
2016-07-28 18:02:24 -07:00
PowerShell Team
0dd425da19
Integrate changes between [SD:717473] and [SD:725290]
2016-07-28 18:02:24 -07:00
Sergei Vorobev
2280bea11e
Consolidate map.json files under Microsoft.PowerShell.Commands.Utility
...
Fix #1489
2016-07-28 18:02:24 -07:00
Dongbo Wang
14433e6b1f
Update project.json files to keep sync with the new MMI nuget package
2016-07-28 17:07:57 -07:00
Andy Schwartzmeyer
d691712c01
Merge pull request #1554 from PowerShell/vors/env
...
Make Get-Item env: case-aware on Unix
2016-07-28 14:50:39 -07:00
quoctruong
1de1012f05
Add a tag to check for PSEdition for Find-Packageprovider
2016-07-28 14:39:31 -07:00
Sergei Vorobev
a704a53f08
Make Get-Item env: case-aware on Unix
...
Fix #1196
2016-07-28 14:19:36 -07:00
Sergei Vorobev
845bc34f5a
Update src/Modules/README.md
2016-07-28 12:38:24 -07:00
Sergei Vorobev
8889cada69
Update map.json in src/Modules
2016-07-28 12:36:34 -07:00
Sergei Vorobev
7a010bc407
Move Microsoft.PowerShell.ODataUtils to Full windows only modules
...
Fix #1548
2016-07-28 12:35:21 -07:00
Sergei Vorobev
e7f07688ff
Scope Microsoft.PowerShell.Security exported functions for unix
2016-07-28 12:33:25 -07:00
Sergei Vorobev
06252836ea
Make 'cd' go to the HOME directory
2016-07-27 18:43:19 -07:00
Jason Shirk (POWERSHELL)
9a20bf6f97
Change $PSVersionTable.PSVersion to 6.0.0-alpha
2016-07-27 10:53:11 -07:00
Jason Shirk (POWERSHELL)
be8e39782f
Add SemanticVersion type
2016-07-27 10:53:11 -07:00
Sergei Vorobev
7d866679d0
Address some feedback
...
- Name fields more descriptive
- Use .AddRange instead of foreach
2016-07-26 17:45:49 -07:00
Sergei Vorobev
3fd885ef2d
Add-Type: add mscorlib.dll to the list of default references
...
Fix #1361
On CoreCLR 1.0.0 RTM the layout changed compare to RC2.
This change accounts for it.
This change also cleans up some left-overs for SecureString ref.
2016-07-26 17:45:49 -07:00
Sergei Vorobev
4450005a52
Fix TypeGen with the new layout
2016-07-26 16:59:45 -07:00
Sergei Vorobev
e97af44674
Rename src/powershell-windows to src/powershell-win-core
...
- Update build.psm1
- Update docs
2016-07-26 16:48:57 -07:00
Sergei Vorobev
6626720e44
Introduce Microsoft.PowerShell.SDK
...
- introduce SDK project with our dependencies and CoreCLR framework
for runtime.
- Move dependencies for Full from ConsoleHost to powershell-win-full
- make powershell-win-full Top-level project
- Change build.psm1 to do publish for -FullCLR build
- Update docs
2016-07-26 16:48:57 -07:00
Sergei Vorobev
52569380c7
Merge pull request #1519 from PowerShell/vors/json
...
Fix ConvertFrom-Json to handle mutlilines
2016-07-26 14:37:36 -07:00
Andrew Schwartzmeyer
41173a3b65
Rename IsCore to IsCoreCLR
2016-07-26 11:54:08 -07:00
Andrew Schwartzmeyer
9ba6ba359d
Re-enable assembly name comparison
2016-07-26 11:54:08 -07:00
Andrew Schwartzmeyer
b400ba3688
Use CORECLR to guard analysis progress record
2016-07-26 11:53:53 -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
Andrew Schwartzmeyer
cf8ddc10d6
Remove deprecated guard of resource verification
2016-07-26 11:49:54 -07:00
Sergei Vorobev
3240a2d369
Fix ConvertFrom-Json to handle mutlilines
...
Fix #956
Add Newtonsoft.Json.JsonSerializationException to catch block
that determines which mode to use: single-string or multi-string
2016-07-26 11:11:44 -07:00
Andrew Schwartzmeyer
a1c7d127eb
Add WSManPluginWrapper to AssemblyLoadContext
...
This function is required for PSRP on Linux, as we need to wrap the call
into WSManPluginManagedEntryWrapper.InitPlugin such that it is invoked
via reflection from an assembly loaded with our custom context.
2016-07-25 15:22:56 -07:00
Mike Richmond
0d49cb8aa5
Merge pull request #1490 from PowerShell/mirichmo/pwrshplugin-optimization-and-build-fix
...
Fixing bug in pwrshplugin config file reader and wrapping mc.exe call…
2016-07-25 09:00:32 -07:00
Andrew Schwartzmeyer
bcfe498ef4
Guard ProgressPane for pseudo-TTYs
...
Again due to the fact that relying on Console.IsOutputRedirected (as
System.Console does for these APIs) causes bugs when pseudo-TTYs are
used (since the output is not redirected, but the APIs nonetheless can't
be used properly). So we ran into a problem where the value of CursorTop
and Console.BufferHeight were lies, and so we accidentally attempted to
set it numbers below zero. Guard everything.
2016-07-24 17:13:39 -07:00
Andrew Schwartzmeyer
79daea0132
Remove deprecated catch
...
These colors can be set now.
2016-07-24 16:20:46 -07:00