Merge pull request #699 from PowerShell/vscode
Add VS Code launch and task files
This commit is contained in:
commit
fe8f012f8e
23
.vscode/launch.json
vendored
Normal file
23
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": ".NET Core Launch",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"justMyCode": false,
|
||||
"stopAtEntry": true,
|
||||
"program": "${workspaceRoot}/bin/powershell",
|
||||
"args": [ ],
|
||||
"preLaunchTask": "build",
|
||||
"cwd": "${workspaceRoot}"
|
||||
},
|
||||
{
|
||||
"name": ".NET Core Attach",
|
||||
"type": "coreclr",
|
||||
"request": "attach",
|
||||
"justMyCode": false,
|
||||
"program": "powershell"
|
||||
}
|
||||
]
|
||||
}
|
16
.vscode/tasks.json
vendored
Normal file
16
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"version": "0.1.0",
|
||||
"command": "powershell",
|
||||
"isShellCommand": true,
|
||||
"showOutput": "verbose",
|
||||
"args": [ "--command" ],
|
||||
|
||||
"tasks": [
|
||||
{
|
||||
"taskName": "build",
|
||||
"args": [ "Import-Module ${workspaceRoot}/PowerShellGitHubDev.psm1; Start-PSBuild" ],
|
||||
"isBuildCommand": true,
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
@ -119,16 +119,16 @@ function Start-PSBuild
|
||||
# handle Restore
|
||||
if ($Restore -Or -Not (Test-Path "$Top/project.lock.json")) {
|
||||
log "Run dotnet restore"
|
||||
# restore is genuinely verbose.
|
||||
# we don't show it by default to keep CI build log size small
|
||||
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent)
|
||||
{
|
||||
dotnet restore $PSScriptRoot
|
||||
}
|
||||
else
|
||||
{
|
||||
dotnet restore $PSScriptRoot > $null
|
||||
}
|
||||
|
||||
$Arguments = @("--verbosity")
|
||||
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||
$Arguments += "Info" } else { $Arguments += "Warning" }
|
||||
|
||||
if ($Runtime) { $Arguments += "--runtime", $Runtime }
|
||||
|
||||
$Arguments += "$PSScriptRoot"
|
||||
|
||||
dotnet restore $Arguments
|
||||
}
|
||||
|
||||
# Build native components
|
||||
|
@ -11,7 +11,7 @@
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-23922",
|
||||
"NETStandard.Library": "1.5.0-rc3-23922",
|
||||
"System.Security.SecureString": "1.0.0-*"
|
||||
}
|
||||
},
|
||||
|
@ -19,8 +19,8 @@
|
||||
"define": [ "_CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Runtime.Serialization.Xml": "4.1.1-rc2-23922",
|
||||
"System.Threading.ThreadPool": "4.0.10-rc2-23922"
|
||||
"System.Runtime.Serialization.Xml": "4.1.1-rc3-23922",
|
||||
"System.Threading.ThreadPool": "4.0.10-rc3-23922"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
@ -19,8 +19,8 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.ServiceProcess.ServiceController": "4.1.0-rc2-23922",
|
||||
"System.Net.NameResolution": "4.0.0-rc2-23922"
|
||||
"System.ServiceProcess.ServiceController": "4.1.0-rc3-23922",
|
||||
"System.Net.NameResolution": "4.0.0-rc3-23922"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
@ -22,8 +22,8 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-23922",
|
||||
"System.Runtime.Loader": "4.0.0-rc2-23922"
|
||||
"NETStandard.Library": "1.5.0-rc3-23922",
|
||||
"System.Runtime.Loader": "4.0.0-rc3-23922"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -23,9 +23,9 @@
|
||||
"define": [ "CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Security.Principal": "4.0.1-rc2-23922",
|
||||
"System.Security.Principal.Windows": "4.0.0-rc2-23922",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-23922",
|
||||
"System.Security.Principal": "4.0.1-rc3-23922",
|
||||
"System.Security.Principal.Windows": "4.0.0-rc3-23922",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc3-23922",
|
||||
"System.Security.SecureString": "1.0.0-*"
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": "8.0.2",
|
||||
"System.Xml.XDocument": "4.0.11-rc2-23922",
|
||||
"System.Xml.XDocument": "4.0.11-rc3-23922",
|
||||
"Microsoft.PowerShell.Commands.Management": "1.0.0-*",
|
||||
"Microsoft.PowerShell.Commands.Utility": "1.0.0-*"
|
||||
},
|
||||
@ -25,14 +25,5 @@
|
||||
"netstandardapp1.5": {
|
||||
"imports": [ "dnxcore50", "portable-net45+win8" ]
|
||||
}
|
||||
},
|
||||
|
||||
"runtimes": {
|
||||
"ubuntu.14.04-x64": { },
|
||||
"centos.7.1-x64": { },
|
||||
"win7-x64": { },
|
||||
"win10-x64": { },
|
||||
"osx.10.10-x64": { },
|
||||
"osx.10.11-x64": { }
|
||||
}
|
||||
}
|
||||
|
@ -30,36 +30,36 @@
|
||||
"Microsoft.PowerShell.CoreCLR.AssemblyLoadContext": "1.0.0-*",
|
||||
"Microsoft.PowerShell.CoreCLR.Eventing": "1.0.0-*",
|
||||
|
||||
"Microsoft.CSharp": "4.0.1-rc2-23922",
|
||||
"Microsoft.Win32.Registry.AccessControl": "4.0.0-rc2-23922",
|
||||
"System.Collections.Specialized": "4.0.1-rc2-23922",
|
||||
"System.Collections.NonGeneric": "4.0.1-rc2-23922",
|
||||
"System.ComponentModel.EventBasedAsync": "4.0.11-rc2-23922",
|
||||
"System.ComponentModel.TypeConverter": "4.0.1-rc2-23922",
|
||||
"System.Data.Common": "4.0.1-rc2-23922",
|
||||
"System.Diagnostics.Contracts": "4.0.1-rc2-23922",
|
||||
"System.Diagnostics.FileVersionInfo": "4.0.0-rc2-23922",
|
||||
"System.Diagnostics.Process": "4.1.0-rc2-23922",
|
||||
"System.Diagnostics.StackTrace": "4.0.1-rc2-23922",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc2-23922",
|
||||
"System.Dynamic.Runtime": "4.0.11-rc2-23922",
|
||||
"System.IO.FileSystem.AccessControl": "4.0.0-rc2-23922",
|
||||
"System.IO.FileSystem.DriveInfo": "4.0.0-rc2-23922",
|
||||
"System.IO.FileSystem.Watcher": "4.0.0-rc2-23922",
|
||||
"System.IO.Pipes": "4.0.0-rc2-23922",
|
||||
"System.Linq.Expressions": "4.0.11-rc2-23922",
|
||||
"System.Net.Http": "4.0.1-rc2-23922",
|
||||
"System.Net.NetworkInformation": "4.1.0-rc2-23922",
|
||||
"System.Reflection.Emit": "4.0.1-rc2-23922",
|
||||
"System.Reflection.Emit.Lightweight": "4.0.1-rc2-23922",
|
||||
"System.Security.AccessControl": "4.0.0-rc2-23922",
|
||||
"System.Security.Cryptography.Algorithms": "4.1.0-rc2-23922",
|
||||
"System.Security.Cryptography.X509Certificates": "4.1.0-rc2-23922",
|
||||
"System.Threading.Thread": "4.0.0-rc2-23922",
|
||||
"System.Threading.Tasks.Parallel": "4.0.1-rc2-23922",
|
||||
"System.Xml.XPath.XmlDocument": "4.0.1-rc2-23922",
|
||||
"System.Xml.XmlDocument": "4.0.1-rc2-23922",
|
||||
"System.Xml.XmlSerializer": "4.0.11-rc2-23922"
|
||||
"Microsoft.CSharp": "4.0.1-rc3-23922",
|
||||
"Microsoft.Win32.Registry.AccessControl": "4.0.0-rc3-23922",
|
||||
"System.Collections.Specialized": "4.0.1-rc3-23922",
|
||||
"System.Collections.NonGeneric": "4.0.1-rc3-23922",
|
||||
"System.ComponentModel.EventBasedAsync": "4.0.11-rc3-23922",
|
||||
"System.ComponentModel.TypeConverter": "4.0.1-rc3-23922",
|
||||
"System.Data.Common": "4.0.1-rc3-23922",
|
||||
"System.Diagnostics.Contracts": "4.0.1-rc3-23922",
|
||||
"System.Diagnostics.FileVersionInfo": "4.0.0-rc3-23922",
|
||||
"System.Diagnostics.Process": "4.1.0-rc3-23922",
|
||||
"System.Diagnostics.StackTrace": "4.0.1-rc3-23922",
|
||||
"System.Diagnostics.TraceSource": "4.0.0-rc3-23922",
|
||||
"System.Dynamic.Runtime": "4.0.11-rc3-23922",
|
||||
"System.IO.FileSystem.AccessControl": "4.0.0-rc3-23922",
|
||||
"System.IO.FileSystem.DriveInfo": "4.0.0-rc3-23922",
|
||||
"System.IO.FileSystem.Watcher": "4.0.0-rc3-23922",
|
||||
"System.IO.Pipes": "4.0.0-rc3-23922",
|
||||
"System.Linq.Expressions": "4.0.11-rc3-23922",
|
||||
"System.Net.Http": "4.0.1-rc3-23922",
|
||||
"System.Net.NetworkInformation": "4.1.0-rc3-23922",
|
||||
"System.Reflection.Emit": "4.0.1-rc3-23922",
|
||||
"System.Reflection.Emit.Lightweight": "4.0.1-rc3-23922",
|
||||
"System.Security.AccessControl": "4.0.0-rc3-23922",
|
||||
"System.Security.Cryptography.Algorithms": "4.1.0-rc3-23922",
|
||||
"System.Security.Cryptography.X509Certificates": "4.1.0-rc3-23922",
|
||||
"System.Threading.Thread": "4.0.0-rc3-23922",
|
||||
"System.Threading.Tasks.Parallel": "4.0.1-rc3-23922",
|
||||
"System.Xml.XPath.XmlDocument": "4.0.1-rc3-23922",
|
||||
"System.Xml.XmlDocument": "4.0.1-rc3-23922",
|
||||
"System.Xml.XmlSerializer": "4.0.11-rc3-23922"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
|
@ -12,7 +12,7 @@
|
||||
"frameworks": {
|
||||
"netstandard1.5": {
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-23922"
|
||||
"NETStandard.Library": "1.5.0-rc3-23922"
|
||||
},
|
||||
"imports": [ "dnxcore50" ]
|
||||
}
|
||||
|
@ -13,14 +13,5 @@
|
||||
"netstandardapp1.5": {
|
||||
"imports": [ "dnxcore50", "portable-net45+win8" ]
|
||||
}
|
||||
},
|
||||
|
||||
"runtimes": {
|
||||
"ubuntu.14.04-x64": { },
|
||||
"centos.7.1-x64": { },
|
||||
"win7-x64": { },
|
||||
"win10-x64": { },
|
||||
"osx.10.10-x64": { },
|
||||
"osx.10.11-x64": { }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user