mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request #947 from PowerShell/andschwa/update-packages
Update .NET Core packages
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="CI Builds (dotnet-core)" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||
<add key="CI Builds (dotnet-cli)" value="http://myget.org/F/dotnet-cli/api/v3/index.json" />
|
||||
<add key="CI Builds (NuGet)" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
|
||||
<add key="CI Builds (xUnit)" value="https://www.myget.org/F/coreclr-xunit/api/v3/index.json" />
|
||||
<add key="CI Builds (aspnetcidev)" value="http://myget.org/F/aspnetcidev/api/v3/index.json" />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="local" value="./src/windows-build/nuget-feed" />
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
"define": [ "_CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Runtime.Serialization.Xml": "4.1.1-rc2-24022",
|
||||
"System.Threading.ThreadPool": "4.0.10-rc2-24022"
|
||||
"System.Runtime.Serialization.Xml": "4.1.1-rc2-24103",
|
||||
"System.Threading.ThreadPool": "4.0.10-rc2-24103"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.ServiceProcess.ServiceController": "4.1.0-rc2-24022",
|
||||
"System.Net.NameResolution": "4.0.0-rc2-24022"
|
||||
"System.ServiceProcess.ServiceController": "4.1.0-rc2-24103",
|
||||
"System.Net.NameResolution": "4.0.0-rc2-24103"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-24022",
|
||||
"System.Runtime.Loader": "4.0.0-rc2-24022"
|
||||
"NETStandard.Library": "1.5.0-rc2-24103",
|
||||
"System.Runtime.Loader": "4.0.0-rc2-24103"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Security.Principal": "4.0.1-rc2-24022",
|
||||
"System.Security.Principal.Windows": "4.0.0-rc2-24022",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-24022",
|
||||
"System.Security.Principal": "4.0.1-rc2-24103",
|
||||
"System.Security.Principal.Windows": "4.0.0-rc2-24103",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-24103",
|
||||
"System.Security.SecureString": "1.0.0-*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": "8.0.2",
|
||||
"System.Xml.XDocument": "4.0.11-rc2-24022",
|
||||
"System.IO.MemoryMappedFiles": "4.0.0-rc2-24022",
|
||||
"System.Xml.XDocument": "4.0.11-rc2-24103",
|
||||
"System.IO.MemoryMappedFiles": "4.0.0-rc2-24103",
|
||||
"Microsoft.PowerShell.Commands.Management": "1.0.0-*",
|
||||
"Microsoft.PowerShell.Commands.Utility": "1.0.0-*",
|
||||
"Microsoft.PowerShell.PSReadLine": "1.0.0-*"
|
||||
|
||||
@@ -30,36 +30,36 @@
|
||||
"Microsoft.PowerShell.CoreCLR.AssemblyLoadContext": "1.0.0-*",
|
||||
"Microsoft.PowerShell.CoreCLR.Eventing": "1.0.0-*",
|
||||
|
||||
"Microsoft.CSharp": "4.0.1-rc2-24022",
|
||||
"Microsoft.Win32.Registry.AccessControl": "4.0.0-rc2-24022",
|
||||
"System.Collections.Specialized": "4.0.1-rc2-24022",
|
||||
"System.Collections.NonGeneric": "4.0.1-rc2-24022",
|
||||
"System.ComponentModel.EventBasedAsync": "4.0.11-rc2-24022",
|
||||
"System.ComponentModel.TypeConverter": "4.0.1-rc2-24022",
|
||||
"System.Data.Common": "4.0.1-rc2-24022",
|
||||
"System.Diagnostics.Contracts": "4.0.1-rc2-24022",
|
||||
"System.Diagnostics.FileVersionInfo": "4.0.0-rc2-24022",
|
||||
"System.Diagnostics.Process": "4.1.0-rc2-24022",
|
||||
"System.Diagnostics.StackTrace": "4.0.1-rc2-24022",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-24022",
|
||||
"System.Dynamic.Runtime": "4.0.11-rc2-24022",
|
||||
"System.IO.FileSystem.AccessControl": "4.0.0-rc2-24022",
|
||||
"System.IO.FileSystem.DriveInfo": "4.0.0-rc2-24022",
|
||||
"System.IO.FileSystem.Watcher": "4.0.0-rc2-24022",
|
||||
"System.IO.Pipes": "4.0.0-rc2-24022",
|
||||
"System.Linq.Expressions": "4.0.11-rc2-24022",
|
||||
"System.Net.Http": "4.0.1-rc2-24022",
|
||||
"System.Net.NetworkInformation": "4.1.0-rc2-24022",
|
||||
"System.Reflection.Emit": "4.0.1-rc2-24022",
|
||||
"System.Reflection.Emit.Lightweight": "4.0.1-rc2-24022",
|
||||
"System.Security.AccessControl": "4.0.0-rc2-24022",
|
||||
"System.Security.Cryptography.Algorithms": "4.1.0-rc2-24022",
|
||||
"System.Security.Cryptography.X509Certificates": "4.1.0-rc2-24022",
|
||||
"System.Threading.Thread": "4.0.0-rc2-24022",
|
||||
"System.Threading.Tasks.Parallel": "4.0.1-rc2-24022",
|
||||
"System.Xml.XPath.XmlDocument": "4.0.1-rc2-24022",
|
||||
"System.Xml.XmlDocument": "4.0.1-rc2-24022",
|
||||
"System.Xml.XmlSerializer": "4.0.11-rc2-24022"
|
||||
"Microsoft.CSharp": "4.0.1-rc2-24103",
|
||||
"Microsoft.Win32.Registry.AccessControl": "4.0.0-rc2-24103",
|
||||
"System.Collections.Specialized": "4.0.1-rc2-24103",
|
||||
"System.Collections.NonGeneric": "4.0.1-rc2-24103",
|
||||
"System.ComponentModel.EventBasedAsync": "4.0.11-rc2-24103",
|
||||
"System.ComponentModel.TypeConverter": "4.0.1-rc2-24103",
|
||||
"System.Data.Common": "4.0.1-rc2-24103",
|
||||
"System.Diagnostics.Contracts": "4.0.1-rc2-24103",
|
||||
"System.Diagnostics.FileVersionInfo": "4.0.0-rc2-24103",
|
||||
"System.Diagnostics.Process": "4.1.0-rc2-24103",
|
||||
"System.Diagnostics.StackTrace": "4.0.1-rc2-24103",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-24103",
|
||||
"System.Dynamic.Runtime": "4.0.11-rc2-24103",
|
||||
"System.IO.FileSystem.AccessControl": "4.0.0-rc2-24103",
|
||||
"System.IO.FileSystem.DriveInfo": "4.0.0-rc2-24103",
|
||||
"System.IO.FileSystem.Watcher": "4.0.0-rc2-24103",
|
||||
"System.IO.Pipes": "4.0.0-rc2-24103",
|
||||
"System.Linq.Expressions": "4.0.11-rc2-24103",
|
||||
"System.Net.Http": "4.0.1-rc2-24103",
|
||||
"System.Net.NetworkInformation": "4.1.0-rc2-24103",
|
||||
"System.Reflection.Emit": "4.0.1-rc2-24103",
|
||||
"System.Reflection.Emit.Lightweight": "4.0.1-rc2-24103",
|
||||
"System.Security.AccessControl": "4.0.0-rc2-24103",
|
||||
"System.Security.Cryptography.Algorithms": "4.1.0-rc2-24103",
|
||||
"System.Security.Cryptography.X509Certificates": "4.1.0-rc2-24103",
|
||||
"System.Threading.Thread": "4.0.0-rc2-24103",
|
||||
"System.Threading.Tasks.Parallel": "4.0.1-rc2-24103",
|
||||
"System.Xml.XPath.XmlDocument": "4.0.1-rc2-24103",
|
||||
"System.Xml.XmlDocument": "4.0.1-rc2-24103",
|
||||
"System.Xml.XmlSerializer": "4.0.11-rc2-24103"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"frameworks": {
|
||||
"netstandard1.5": {
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-24022"
|
||||
"NETStandard.Library": "1.5.0-rc2-24103"
|
||||
},
|
||||
"imports": [ "dnxcore50" ]
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"Microsoft.DotNet.ProjectModel": "1.0.0-*",
|
||||
"Microsoft.DotNet.Cli.Utils": "1.0.0-*"
|
||||
"Microsoft.DotNet.ProjectModel": "1.0.0-rc2-002665",
|
||||
"Microsoft.DotNet.Cli.Utils": "1.0.0-rc2-002665"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"imports": [ "dnxcore50", "portable-net45+win8" ],
|
||||
"dependencies": {
|
||||
"xunit": "2.1.0",
|
||||
"dotnet-test-xunit": "1.0.0-dev-140469-38"
|
||||
"dotnet-test-xunit": "1.0.0-rc2-173384-19"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
Describe "PSReadLine" {
|
||||
BeforeAll {
|
||||
if (Get-Module PSReadLine) {
|
||||
$originalEditMode = (Get-PSReadLineOption).EditMode
|
||||
Remove-Module PSReadLine
|
||||
}
|
||||
}
|
||||
|
||||
It "Should import the module correctly" {
|
||||
Import-Module PSReadLine
|
||||
$module = Get-Module PSReadLine
|
||||
$module.Name | Should Be "PSReadLine"
|
||||
$module.Version | Should Be "1.2"
|
||||
}
|
||||
|
||||
It "Should set the edit mode" {
|
||||
Set-PSReadlineOption -EditMode Windows
|
||||
(Get-PSReadlineKeyHandler | where { $_.Key -eq "Ctrl+A" }).Function | Should Be SelectAll
|
||||
|
||||
Set-PSReadlineOption -EditMode Emacs
|
||||
(Get-PSReadlineKeyHandler | where { $_.Key -eq "Ctrl+A" }).Function | Should Be BeginningOfLine
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
Remove-Module PSReadLine
|
||||
|
||||
if ($originalEditMode) {
|
||||
Import-Module PSReadLine
|
||||
Set-PSReadlineOption -EditMode $originalEditMode
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user