Dongbo Wang
54cb65bbf2
Move *.csproj files to PowerShell/src/vs-csproj and PowerShell/test/vs-csproj to avoid confusing the latest dotnet.exe.
...
If a *.csproj file is in a project directory, the latest dotnet.exe will use it, instead of the project.json file, to build the project.
2016-10-21 14:12:10 -07:00
Mike Richmond
35ab4293e3
Adding Windows path to the VS Code Debugging setup document. ( #2512 )
2016-10-20 14:02:45 -07:00
PowerShell Team
ed38d70cf6
Adding Ported Get-ComputerInfo Tests
2016-10-19 14:59:38 -07:00
Mike Richmond
3bbeabf6bc
Adding WindowsVersion to Get-ComputerInfo
2016-10-19 14:59:38 -07:00
Chunqing Chen
0908547083
Remove the unnecessary use of lock in PseudoParameterBinder to avoid deadlock ( #2501 )
...
This is the fix to MSFT:9039127 [RFC] : SMA Jobs stop processing, show various status but never change or progress; due to deadlock in sandbox process.
The fix is brought to GitHub to make sure GitHub powershell always has the latest changes.
2016-10-18 17:32:56 -07:00
Dongbo Wang
1d29d42ff7
Remove crossgen'ed IL assemblies and then rename NI assemblies to the same as the corresponding IL images. ( #2484 )
...
* Remove crossgen'ed IL assemblies and then rename NI assemblies to the same as the corresponding IL images.
This is to make sure:
1. The dependency existence check by powershell.exe will pass for all TPAs.
2. CoreCLR by default will load the NI images even though it's using names of the IL images.
* Update the comment to make it easy to understand
2016-10-18 13:12:51 -07:00
Dongbo Wang
289e6958ef
Update docs/scripts to use the alpha.11 release packages ( #2498 )
2016-10-18 13:09:09 -07:00
Dongbo Wang
d26b1d7155
Update coding-guidelines to encourage adding code comments ( #2489 )
2016-10-18 10:12:20 -07:00
Andrew Schwartzmeyer
5e1661df59
Document Start-ResGen and Start-TypeGen ( #2487 )
2016-10-17 15:21:57 -07:00
Andrew Schwartzmeyer
8e3861a64b
Merge pull request #2441 from andschwa/native-perror
...
Fix error handling of libpsl-native
2016-10-17 11:13:31 -07:00
iSazonov
7d97bebeb2
Refactor 'Get-WinEvent' to use StringBuilder for XPath query construction ( #2467 )
...
1. Move "string" to const
2. Use StringBuilder everywhere
2016-10-17 10:10:17 -07:00
Andrew Schwartzmeyer
07a1841eb6
Set libpsl-native configuration to release
...
This disables asserts.
2016-10-14 15:43:00 -07:00
Andrew Schwartzmeyer
e630c6f79c
Fix GetCurrentThreadId
2016-10-14 15:43:00 -07:00
Andrew Schwartzmeyer
24d0ce36e6
Fix SetDate
...
And use a bunch of unsafe code because of concerns about stack size.
2016-10-14 15:43:00 -07:00
Andrew Schwartzmeyer
cdcd2c25c8
Remove Windows ERROR codes from pal.h
2016-10-14 15:43:00 -07:00
Andrew Schwartzmeyer
011d947fd5
Clean up GetFileOwner
2016-10-14 15:43:00 -07:00
Andrew Schwartzmeyer
4038cd61f2
Clean up IsExecutable
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
8b3e8be1bc
Clean up IsDirectory
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
2a6b84ed1b
Clean up IsHardLink
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
e343e8ec60
Clean up GetUserFromPid
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
14e2389e71
Clean up GetComputerName
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
1d240ef3e4
Remove GetLStat
2016-10-14 15:42:59 -07:00
Andrew Schwartzmeyer
b4b2278571
Clean up CreateHardLink
2016-10-14 15:42:58 -07:00
Andrew Schwartzmeyer
0ce5575f57
Clean up CreateSymLink
2016-10-14 15:42:58 -07:00
Andrew Schwartzmeyer
bdfe69355f
Clean up GetComputerName
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
82867a5c12
Clean up FollowSymLink
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
fc5a1ae6aa
Clean up SetDate
...
Remove pass-by-reference from C API
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
196a37b118
Add native errno to ErrorCategory mapper
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
e1aeeaa9c2
Switch to Win32Exception(GetLastWin32Error)
...
This is verified to work "correctly" on Linux in that it gets the
`perror` for the last set value of errno in native code.
No extra mapping or handling needs to be done on our part.
Keeping the strerror_r implementation in the history for the valuable
implementation of config.h.in in the library.
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
6c3e536ca8
Add configure to CMake to detect GNU strerror_r
...
* Add getstrerror to libpsl-native
* Add Unix.GetLastPerror to CorePsPlatform
2016-10-14 15:30:19 -07:00
Andrew Schwartzmeyer
b0cd7ba3dc
Clean up libpsl-native headers
2016-10-14 15:30:19 -07:00
Steve Lee
001f6ecf72
Addressing static analysis issue ( #2486 )
...
* Addressing static code analysis issue from TFS:8328091
* Addressing code review feedback
* Fixed build break
* Addressing static analysis issue TFS:8328091
2016-10-14 15:12:17 -07:00
wangzq
1cc0ef6141
Save file as UTF8 with BOM ( Fixes #2476 ) ( #2477 )
2016-10-14 13:13:50 -07:00
Dongbo Wang
e240c0cb32
Make Pester skip the redirection test for '[Encoding]::Default' instead of ignoring it, so that we can keep track of this encoding issue
2016-10-14 10:02:44 -07:00
Dongbo Wang
139b399223
Fix test failures due to changes in .NET Core and the exclusion of 'Certificate' provider in UNIX PS
2016-10-14 10:02:44 -07:00
Dongbo Wang
f02b6ef97a
Exclude 'Registry' and 'Certificate' providers from UNIX PS since they don't work on UNIX platform.
...
With this change, 'Registry' and 'Certificate' providers won't be compiled for UNIX PS.
2016-10-14 10:02:44 -07:00
Dongbo Wang
d0c60e049d
Avoid calling static members from 'Microsoft.Win32.Registry' on UNIX, especially the code that would run in TypeInitializer.
...
This is because with the latest .NET Core packages (1.1.0 preview), calling static members from 'Microsoft.Win32.Registry' will raise 'PlatformNotSupportedException'.
2016-10-14 10:02:44 -07:00
Dongbo Wang
a1aac43f1b
Update build.psm1 to not remove IL assemblies after crossgen because the latest dotnet.exe checks the existence of all TPA assemblies, including those built from the local projects
2016-10-14 10:02:44 -07:00
Dongbo Wang
2e402cfef1
Update powershell to depend on latest dotnet core packages (preview1-24530-04 from 9/30/2016)
2016-10-14 10:02:44 -07:00
Steve Lee
9e47ad4733
Addressing static code analysis issue ( #2470 )
...
* Addressing static code analysis issue: Add CultureInfo to 'Type.InvokeMember' calls
* Addressing code review feedback
* Fixed build break
2016-10-13 14:46:21 -07:00
Christopher Ubben
c0f1d85e99
Added feature level test coverage to Registry provider ( #2417 )
2016-10-12 14:58:22 -07:00
Aditya Patwardhan
98710a80f0
Add badge for nightly builds ( #2455 )
...
Add the badge for nightly builds with a link to the build page.
2016-10-12 13:34:24 -07:00
iSazonov
6a62969f77
Add Invoke-Item deterministic Windows tests ( #2443 )
...
* Add Invoke-Item deterministic tests
2016-10-12 13:33:16 -07:00
Francisco Gamino
ccffe0755f
Skipping New-PSRoleCapabilityFile and Get-PSSessionCapability on help system test since there is no help content for these two cmdlets ( #2464 )
2016-10-12 12:17:51 -07:00
Francisco Gamino
d717458e7d
Fixing get-help <cmdletName> -online for .NET Core on Desktop. ( #2174 )
...
In PS Core on windows, we try to locate the default web browser and use it for online help. If we cannot find the default web browser (in NanoServer/IoT), we error out.
2016-10-12 12:16:32 -07:00
Andrew Schwartzmeyer
14690f20cc
Commit copies of bootstrap.ps1 for automated builds ( #2458 )
...
While this is copied by `launch.sh`, it needs to exist in
each folder for the automated Docker hub builds.
2016-10-11 13:56:42 -07:00
Andrew Schwartzmeyer
5748a0ac1a
Fix Docker repos ( #2457 )
2016-10-11 13:15:24 -07:00
Steve Lee
b056b6d36d
Merge pull request #2454 from andschwa/rename-containers
...
Rename "stable unstable" containers to "release nightly"
2016-10-11 11:38:15 -07:00
Andrew Schwartzmeyer
a66e8f3602
Rename "stable unstable" containers to "release nightly"
...
This change is made at the request of the PowerShell committee,
as the use of "stable" implied more stability than available with alpha
releases. This also changes the images from existing under one repo to
two: powershell/powershell and powershell/powershell-nightly.
The documentation and script have been updated.
2016-10-11 11:13:48 -07:00
Paul Higinbotham
3815482082
Fix host remote test InvokeOnRunspace to work with AppVeyor ( #2362 )
...
* Fix host remote test InvokeOnRunspace to work with AppVeyor
* Updated to use new local account for remoting tests.
* Set the LocalAccountTokenFilterPolicy as needed.
* Adding verbose messages for debugging.
* Storing creds using Export-CliXml
* Added CITravis skip for Windows only remoting test
* Moving tests back to 'Feature' scope
* Added AppVeyor environment variable check to prevent account creation on non-appveyor configurations
* Removed It block in BeforeAll block
* Moving tests back to 'Feature'
2016-10-10 15:24:04 -07:00