Andrew Schwartzmeyer
528f255dd8
Fix publishOptions for powershell-unix
...
While Unix builds were given their own module folder,
it was only being copied for build, not for publish,
thus breaking some builds.
2016-08-09 12:39:19 -07:00
Andrew Schwartzmeyer
1576172d23
Add Get/Set ExecutionPolicy cmdlets back to module
...
Without these declared in the Unix module manifest,
the related tests fail as the cmdlets cannot be found.
This is a regression.
2016-08-09 12:06:05 -07:00
Andrew Schwartzmeyer
4c830d5e32
Add Trace-Commands back to Utility module
...
This fixes a regression introduced by 0dd425da1 .
2016-08-08 12:14:06 -07:00
Dongbo Wang
ba2cd1d2b7
Merge pull request #1669 from andschwa/safe-hostname
...
Safe hostname
2016-08-08 11:10:53 -07:00
Andrew Schwartzmeyer
9d164ea972
Move Unix class under Platform
...
E.g. SMA.Platform.Unix, not just SMA.Unix.
2016-08-08 10:48:59 -07:00
Andrew Schwartzmeyer
a8416d7b30
Consolidate GetUserName code
...
Once .NET Core 1.1 becomes available, we can likely remove the entirety
of CorePsExtensions.cs.
2016-08-08 10:48:59 -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
Sergei Vorobev
b859b5ab3e
Merge pull request #1671 from lzybkr/remoting_fix
...
Fix remoting break caused by refactoring
2016-08-05 18:48:06 -07:00
Jason Shirk (POWERSHELL)
cf40937552
Fix remoting break caused by refactoring
...
Remoting apparently depends on the names of private fields
not changing between versions of PowerShell.
Because of this, these refactorings broke remoting:
* rename private fields
* convert to auto-property
2016-08-05 17:55:49 -07:00
Andrew Schwartzmeyer
3f9889d6da
Consolidate InternalGetFolderPath
...
This logic belongs in one place, not split in two.
2016-08-05 15:34:52 -07:00
Andrew Schwartzmeyer
816dac0a55
Do not throw when getting Unix domain or user name
...
If the attempt to get the name fails, throwing an exception results in
PowerShell crashing. Instead, we should simply return empty data.
"unknown" is specifically not returned because it would be ambiguous; it
is not impossible to have an actual user or domain named "unknown".
2016-08-05 15:34:43 -07:00
Dongbo Wang
908d808967
Merge pull request #1659 from PowerShell/quoct/removepsl
...
Remove PackageSourceListProvider from build
2016-08-05 15:24:14 -07:00
Dongbo Wang
9a0436b856
Merge pull request #1661 from PowerShell/dongbo/get-pssession
...
Fix if/def guards to allow engine to load WsMan and Diagnostics snapins by default when RunspaceConfiguration is used to create a runspace
2016-08-05 13:00:06 -07:00
Dongbo Wang
dc9b326587
Fix issue #1609 - Get-PSSession -computername fails on nano
...
Root cause: Microsoft.WSMan.Management and Microsoft.PowerShell.Commands.Diagnostics are not put in the default snapin list for win-ops, and thus when a runspace is created using RunspaceConfiguration, those 2 are not loaded as snapins by default, which is a behavior change compared to Nano PS.
Fix: Replace the guard 'PORTABLE' to be 'UNIX' so that they are in the default snapin list when targeting windows platform.
2016-08-05 11:20:14 -07:00
Andrew Schwartzmeyer
09e1683098
Add Ubuntu 16.04 RID
2016-08-05 10:09:40 -07:00
quoctruong
30df705a18
Remove building PSL
2016-08-04 20:47:51 -07:00
Mike Richmond
1e4615114c
Reducing duplication of Environment variable extraction
2016-08-04 13:15:34 -07:00
Mike Richmond
d3625f7662
Resolving issue with Registry reads where values are not present.
2016-08-04 13:15:34 -07:00
Mike Richmond
6eb0f2d6c7
Addressing reader and writer synchronization to the config file within the process.
2016-08-04 13:15:34 -07:00
Mike Richmond
b291e2006c
Fixing implementation of GetModulePath to conform to the requirements of #1184 .
2016-08-04 13:15:34 -07:00
Mike Richmond
8ffb717e14
Reducing exception catching within ConfigPropertyAccessor classes to provide greater control to callers regarding the most appropriate way to handle them.
2016-08-04 13:15:34 -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
Mike Richmond
f8b9b88986
Bug fixes and cleanup in preparation for push.
2016-08-04 13:15:34 -07:00
Mike Richmond
e6e785ec92
Added module path support. Not plumbed trhough yet.
2016-08-04 13:15:34 -07:00
Mike Richmond
2c365356b6
Adding UpdatableHelp checks.
2016-08-04 13:15:34 -07:00
Mike Richmond
73689d697a
ExecutionPolicy is now working from JSON files
2016-08-04 13:15:34 -07:00
Mike Richmond
4b8eff2817
Backing up in-progress changes to work on other stuff
2016-08-04 13:15:34 -07:00
Jason Shirk
f15e66b283
Merge pull request #1633 from PowerShell/revert_psedition_namechange
...
Revert the changes made in #1457 . Desktop and Core are the PowerShell Edition names. Remove Linux as edition name.
2016-08-04 12:21:12 -07:00
Dongbo Wang
98ae3e7f1e
Merge pull request #1637 from PowerShell/dongbo/ops-remoting
...
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 12:17:46 -07:00
John Kordich
1492abeedc
Adding libmi and PSDSC nuget deps
2016-08-04 10:47:41 -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
Manikyam Bavandla
93d4129a3b
Reverting PSEdition name changes.
2016-08-03 16:27:47 -07:00
Manikyam Bavandla
5eef2cacc4
Removed Linux PSEdition name
2016-08-03 15:53:31 -07:00
Manikyam Bavandla
f68660511d
Remove redundent .ToLower() in PSDiagnostics.psm1
2016-08-03 15:53:31 -07:00
Manikyam Bavandla
eacfd9418c
Revert "Merge pull request #1458 from PowerShell/psedition_rename"
...
This reverts commit 042d1e99bb , reversing
changes made to 105bf9c9ff .
2016-08-03 15:53:31 -07:00
Sergei Vorobev
13b2da52fb
Merge pull request #1571 from PowerShell/frangom/crossgen
...
Enable crossgen for PowerShell binaries on Windows and Linux
2016-08-03 14:15:37 -07:00
Jason Shirk
31b3d13e10
Merge pull request #1623 from PowerShell/jimtru/PSDriveFreeSpaceFix
...
Get-PSDrive should report proper free space on all platforms
2016-08-03 14:11:28 -07:00
Jason Shirk (POWERSHELL)
2b70837d98
Set remoting PSVersionTable private data in a downlevel compatible manner
2016-08-03 13:21:42 -07:00
Jason Shirk (POWERSHELL)
2b74b89f76
Add serialization support for SemanticVersion
2016-08-03 13:20:07 -07:00
Francisco Gamino
65eef96bf1
Update Commands.Utility.csproj for WebCmdlet files
2016-08-03 13:12:22 -07:00
PowerShell Team
c1ee6c9d6d
Refactoring - replace always null expressions with null
2016-08-03 12:14:28 -07:00
PowerShell Team
c3ce30e34a
Refactoring - use is operator instead of GetType() where possible
2016-08-03 12:14:28 -07:00
PowerShell Team
22d2273ce4
Refactoring - use ?? in more places
2016-08-03 12:14:28 -07:00
PowerShell Team
85d6e9f022
Refactoring - adjust modifiers declaration order
2016-08-03 12:14:28 -07:00
PowerShell Team
ae8d2ed794
Refactor - convert to auto-property
...
Mostly using R# to automatically refactor, with some manual
fixups where it wouldn't work automatically (e.g. xml comments
on fields) or some it seemed to miss.
Some minor code reformatting was also done on properties near
other stuff I was manually inspecting.
2016-08-03 12:14:28 -07:00
PowerShell Team
bc4901bd59
Remove unused using statements
2016-08-03 12:06:06 -07:00
Jason Shirk (POWERSHELL)
38ab0f4d73
update csproj references
2016-08-03 12:06:06 -07:00
James Truher
1bbdaa7ea8
Change free/used calculation to be consistent across platforms
...
add a couple of tests to validate return values
2016-08-03 10:38:26 -07:00