Commit graph

1417 commits

Author SHA1 Message Date
PowerShell Team 60b3b304f2 Move files from psl-monad submodule to super-project
This commit uses psl-monad branch source-depot 7209cb9
And corresponds to [SD:688741]
2016-03-30 17:16:23 -07:00
Sergei Vorobev 136e0eecea Fix typo in PowerShellGitHubDev.psm1 mapping 2016-03-30 14:13:36 -07:00
Sergei Vorobev 707af00faf Add resx files to mapping.json 2016-03-30 14:12:50 -07:00
Sergei Vorobev 0ff62f7fc5 Add resources mapping capability to New-MappingFile 2016-03-29 16:56:57 -07:00
Sergei Vorobev 562997beb2 Add visualstudiopublic.snk into mapping.json 2016-03-29 16:56:56 -07:00
Sergei Vorobev 2139780eac Add powershell-native sources to mapping.json 2016-03-29 16:56:55 -07:00
Sergei Vorobev 7581df6bea Add Send-GitDiffToSd function to simplify sd workflow
This function will help us to port changes to source-depot
from server2016 branch
2016-03-29 16:56:55 -07:00
Sergei Vorobev 4556eaf6a7 Add mapping to enable psl-monad submodule removal
There are 2 functions:

- New-MappingFile - creates mapping.json from project.json files
  (one is included in this commit)

- Copy-SubmoduleFiles - enables copying files back and forth from
  submodule to src/<projects> based on mapping.json file
2016-03-29 16:56:54 -07:00
Andy Schwartzmeyer d35f86669a Merge pull request #750 from PowerShell/andschwa/tpa
Fix the AssemblyLoadContext and Trusted Platform Assemblies problem
2016-03-29 15:19:24 -07:00
Andrew Schwartzmeyer e972cf27b7 Bump monad submodule with ALC/TPA fixes 2016-03-29 14:38:21 -07:00
Andrew Schwartzmeyer 37d825c741 Don't send a path to the ALC 2016-03-29 13:18:35 -07:00
Andy Schwartzmeyer d929d8f749 Merge pull request #748 from PowerShell/dotnet-run
Enable `dotnet-run`
2016-03-29 12:33:50 -07:00
Andrew Schwartzmeyer 497afcd237 Fix build.sh for new location of libpsl-native 2016-03-29 11:46:16 -07:00
Andrew Schwartzmeyer 489af53052 Bump libpsl-native submodule 2016-03-29 11:18:31 -07:00
Andrew Schwartzmeyer 03c452c98c Deploy native library automatically 2016-03-29 11:18:12 -07:00
Andy Schwartzmeyer 85b00bfaf3 Merge pull request #749 from PowerShell/morelinks
New Linux GetTarget and GetLinkType for symbolic and hard links

Also fixes GetChildItem for symbolic links
2016-03-29 11:15:47 -07:00
George Fleming a516cc2b05 Updated src/monad 2016-03-28 15:11:46 -07:00
George Fleming 7fedb1942e Add src/libpsl-native 2016-03-28 14:36:13 -07:00
George Fleming 3a051adab7 Add src/monad 2016-03-28 14:35:55 -07:00
George Fleming e6980894f7 Modify tests to display link type and link target 2016-03-28 14:35:34 -07:00
Andy Schwartzmeyer 7057c4bfee Merge pull request #743 from PowerShell/andschwa/cli-resources
Use dotnet-resgen to compile resx files
2016-03-28 11:27:40 -07:00
Andrew Schwartzmeyer eb938415bc Fix use of ResourceManager in monad 2016-03-28 10:49:08 -07:00
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