Commit graph

1395 commits

Author SHA1 Message Date
Andrew Schwartzmeyer 2f29f43e42 Set default culture to en-US
So that the resource manager doesn't try to load a non-existent
satellite assembly (and thus throw).

The culture `en-US` is the default `CurrentCulture` on all platforms I
tested, specifically not `en`.

Note that there is a problem with the FullCLR build where some other
assembly is still attempting to reference `Logging.resources` instead of
`System.Management.Automation.Logging.resources`.
2016-03-26 18:49:13 -07:00
Andrew Schwartzmeyer 6433650edf Add System.IO.MemoryMappedFiles dependency
This is a runtime dependency that causes an internal exception to be
thrown and caught when not available.
2016-03-26 17:26:18 -07:00
Andrew Schwartzmeyer aedaf53813 Bump windows-build submodule with resources fixes 2016-03-26 15:31:45 -07:00
Andrew Schwartzmeyer 3d8a3b9d45 Replace Eventing's namedResource section with resource 2016-03-26 15:30:48 -07:00
Andrew Schwartzmeyer af9296035c Replace ConsoleHost's namedResource section with resource 2016-03-26 15:30:45 -07:00
Andrew Schwartzmeyer b363fc909e Replace Security's namedResource section with resource 2016-03-26 15:30:26 -07:00
Andrew Schwartzmeyer 76fd8bd436 Replace Management's namedResource section with resource 2016-03-26 15:30:07 -07:00
Andrew Schwartzmeyer 3979d4c206 Replace Utility's namedResource section with resource 2016-03-26 15:29:48 -07:00
Andrew Schwartzmeyer 9a52f1eaa7 Replace SMA's namedResource section with resource
Specifically this enables us to leverage `dotnet-resgen` to
auto-generate the `resx` files into `resources` files for the default
culture, which are then compiled into the SMA assembly.

This requires a change to the C# bindings. The Windows build system
takes `file.resx` and compiles `file.resources`, but CLI prepends the
assembly name, thus compiling `SMA.file.resources`. So the resource
manager in the generated bindings must be adjusted to look for
`SMA.file` instead of `file`.

Note that C# bindings cannot yet be auto-generated.

Given localized resources of the form `file.en-US.resx`, `dotnet-resgen`
will create a satellite assembly and publish it to
`en-US/SMA.resources.dll`, so #666 will not be a technical problem.
2016-03-26 15:29:17 -07:00
Andrew Schwartzmeyer 18ba3f3365 Fix VS Code attach debugging configuration
Needs to be `processName`, not `program`. Go figure.
2016-03-26 15:27:15 -07:00
Andy Schwartzmeyer fe8f012f8e Merge pull request #699 from PowerShell/vscode
Add VS Code launch and task files
2016-03-25 15:19:16 -07:00
Andrew Schwartzmeyer f9e7e6c89c Handle Start-PSBuild -Restore -Runtime ...
If a runtime is given, we need to restore for that particular runtime as
well.

This also enables `Warning` `dotnet restore` output, and increases the
verbosity to `Info` if `-Verbose` is used.
2016-03-25 15:08:30 -07:00
Andrew Schwartzmeyer 47fd1a45bc Remove runtimes sections from projects
No longer necessary to restore/build. Removing them allows NuGet to
restore only the packages necessary for the current platform, vastly
reducing cache sizes and restore time.

My `~/.nuget/packages` directory was almost 1GB smaller with this
change.
2016-03-25 14:29:18 -07:00
Andrew Schwartzmeyer 840d14e6df Add attach configuration 2016-03-25 14:16:38 -07:00
Andrew Schwartzmeyer c7124578ed Bump packages back to rc3
The primary reason to do this is that the VS Code debugger is not
compatible with rc2.

Secondarily, we want to continue tracking CoreCLR/FX master branch,
which means to continue with the latest release candidates. Since we are
releasing in August, we will be able to pick up the converged RTM
version before release.

The only advantage of rc2 is that it is frozen; but we have this anyway
because we snap to particular builds.
2016-03-25 13:03:07 -07:00
Andy Schwartzmeyer 15495875b4 Merge pull request #737 from PowerShell/PesterTest_Temp
Improve Pester Test for New-object #476
2016-03-24 21:16:34 -07:00
Andy Schwartzmeyer ab1074bc7a Merge pull request #741 from PowerShell/FileSystemProviderTest
Update FileSystemProviderTest to let all test method works for #120
2016-03-24 21:14:01 -07:00
TingLiu6 880225501a Modify Pester test for New-Object 2016-03-24 20:20:06 -07:00
TingLiu6 0802c32562 Merge branch 'master' of https://github.com/PowerShell/PowerShell into PesterTest_Temp 2016-03-24 19:50:03 -07:00
TingLiu6 2d622eedc0 Modify Pester test for New-Object 2016-03-24 19:40:39 -07:00
Andrew Schwartzmeyer 94e3a905bd Add VS Code launch and task files
This enables building PowerShell through VS Code. The build task
launches the installed version of PowerShell and runs
`Start-PSBuild` (after importing the module).

This enables a `launch` debug task to immediately debug the `powershell`
process, without having to attach to an external process.

The defaults of `justMyCode` and `stopAtEntry` have been reversed, so
that all code is debugged, and the process is stopped at entry for
easier debugging.

Note that an interactive PowerShell process requires access to `stdin`,
which the debug console does not provide, so once it requests access,
`System.Console` will throw a (correct) exception.
2016-03-24 16:26:05 -07:00
JumpingYang001 b4ec4bf0d8 Fix travis fail with different Mode format in special machine for FileSytemProvider xunit test 2016-03-24 02:02:50 -07:00
JumpingYang001 81a31ab07e Fix travis fail for FileSytemProvider xunit test 2016-03-24 01:38:35 -07:00
JumpingYang001 7c5a13ec74 Update FileSystemProviderTest to let all test method works for #120 2016-03-24 01:11:11 -07:00
Andy Schwartzmeyer 06ab38e757 Merge pull request #730 from PowerShell/rawui2
MegaPatch that includes all of #717, plus RawUI fixes
2016-03-23 17:56:46 -07:00
Andy Schwartzmeyer 00c2f53c56 Merge pull request #740 from PowerShell/paulcallen/shell-cleanup
Pull in latest PSRP fixes
2016-03-23 17:04:57 -07:00
Paul Allen d7eb0e1612 Pull in latest psrp fixes 2016-03-23 16:34:29 -07:00
George Fleming 5e9c31107c Changes per Andy comments, and add revert of colors at end of PS 2016-03-23 16:17:06 -07:00
George Fleming aab00e2ee1 Fixes UI-related bugs, and migrate Console.Write to myHost.UI.Write 2016-03-23 14:11:04 -07:00
George Fleming d565462286 Reverse TreatControlCAsInput now that CoreFx fix has arrived 2016-03-23 14:11:04 -07:00
George Fleming 5a487f0836 Fix rendering issue with leading spaces, and added support for additional ctrl commands 2016-03-23 14:11:04 -07:00
George Fleming d234ca2499 Add color to reverse search 2016-03-23 14:11:04 -07:00
George Fleming 2708d2bc08 Add Ctrl-R reverse search 2016-03-23 14:11:04 -07:00
George Fleming 89839b69e7 Render multi-line command as a single-line command 2016-03-23 14:11:04 -07:00
George Fleming e713af87bb Adding support for Ctrl-K, Ctrl-Y, and Ctrl-L 2016-03-23 14:11:04 -07:00
George Fleming 2deb871ab2 Tested, except for reversed TreatControlCAsInput 2016-03-23 14:11:04 -07:00
George Fleming cc0b25e515 Pending verification of TreatControlCAsInput 2016-03-23 14:11:04 -07:00
Andy Schwartzmeyer d8de5d20bf Merge pull request #734 from PowerShell/typecataloggen
Fix type catalog generation
2016-03-23 13:16:50 -07:00
Andrew Schwartzmeyer ea41c39859 Fix CoreCLR.Eventing dependency versions 2016-03-22 21:49:56 -07:00
Andrew Schwartzmeyer e88e463315 Add regression test .NET class interop
This bug arose because of a shortcut previously taken when generating
input for the type catalog generator. With a proper parser created, the
input to the generator is now correct, and so this test should succeed.
2016-03-22 21:41:46 -07:00
Andrew Schwartzmeyer d78852dd13 Update CorePsTypeCatalog with reference assemblies
Resolves #720
2016-03-22 21:17:05 -07:00
Andrew Schwartzmeyer 4f3d778b58 Update type catalog generator build script 2016-03-22 21:16:14 -07:00
Andrew Schwartzmeyer e3960a832e Add type catalog parser project
Parses PowerShell's `project.lock.json` file and emits the list of
reference assemblies suitable for the type catalog generator.
2016-03-22 20:55:19 -07:00
Andy Schwartzmeyer 0a808f0b2d Merge pull request #686 from PowerShell/FileSystemProviderTest
Add FileSystemProvider xUnit test for issue 120
2016-03-22 20:48:23 -07:00
Andrew Schwartzmeyer b47cf338a9 Delete Runtime facade
Deprecated with new lockfile parser.
2016-03-22 20:32:50 -07:00
JumpingYang001 31ec32896f Update Fact Skip for not work tests for FileSystemProvider xunit test 2016-03-22 20:23:37 -07:00
JumpingYang001 5c35053350 Update test fix for test_FileSystemProvider.cs 2016-03-22 20:23:37 -07:00
JumpingYang001 920bc1f3f8 Add FileSystemProvider xUnit test for issue 120 2016-03-22 20:23:37 -07:00
TingLiu6 bd51520505 Improve Pester Test for New-object #476 2016-03-22 19:58:34 -07:00
Andy Schwartzmeyer 80a9c10854 Merge pull request #725 from PowerShell/ComparisonOperatorTest
Add comparison operator tests for #219
2016-03-22 19:48:01 -07:00