Skip to content

Commit 50c3c32

Browse files
jack-pappasKevinRansom
authored andcommitted
Port build.cmd to build.sh (dotnet#2497)
Ported majority of the functionality from build.cmd to build.sh to make it easier to build/run the various test suites. The usual 'net40' projects build just fine, but some of the projects in the test suites seem to have build errors unrelated to build.sh. Accept but ignore 'ci' target for now. The mono distribution for Linux doesn't seem to include nuget as it does on macOS. Try to use built-in nuget but fall back to the binary in the repo if necessary. Use the POSIX built-in 'command' instead of 'which'; the latter may not be available on all platforms, and not all implementations have the same behavior. (See dotnet/coreclr#8823 for a similar change.)
1 parent 5083832 commit 50c3c32

File tree

3 files changed

+744
-10
lines changed

3 files changed

+744
-10
lines changed

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Core Launch (console)",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "build",
9+
"program": "${workspaceRoot}/lkg/fsc/bin/Debug/netcoreapp1.0/fsc.dll",
10+
"args": [],
11+
"cwd": "${workspaceRoot}",
12+
"externalConsole": false,
13+
"stopAtEntry": false,
14+
"internalConsoleOptions": "openOnSessionStart"
15+
},
16+
{
17+
"name": ".NET Core Attach",
18+
"type": "coreclr",
19+
"request": "attach",
20+
"processId": "${command.pickProcess}"
21+
}
22+
]
23+
}

.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "dotnet",
4+
"isShellCommand": true,
5+
"args": [],
6+
"tasks": [
7+
{
8+
"taskName": "build",
9+
"args": [
10+
"${workspaceRoot}/lkg/fsc/project.json"
11+
],
12+
"isBuildCommand": true,
13+
"problemMatcher": "$msCompile"
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)