aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-24 20:52:34 +0800
committercrupest <crupest@outlook.com>2019-04-24 20:52:34 +0800
commite241dd42b406bdc418bb487d503d65e5b207deb8 (patch)
treea613b568085a912d13f0ec5c2053c25278f21abc
parent1bdae799ad607a06027f61c5194e7729081418cf (diff)
downloadtimeline-e241dd42b406bdc418bb487d503d65e5b207deb8.tar.gz
timeline-e241dd42b406bdc418bb487d503d65e5b207deb8.tar.bz2
timeline-e241dd42b406bdc418bb487d503d65e5b207deb8.zip
Add development environment on archlinux.
-rw-r--r--.vscode/launch.json34
-rw-r--r--.vscode/tasks.json36
-rwxr-xr-xtools/open-code8
3 files changed, 78 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..bb765851
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,34 @@
+{
+ // Use IntelliSense to find out which attributes exist for C# debugging
+ // Use hover for the description of the existing attributes
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": ".NET Core Launch (web)",
+ "type": "coreclr",
+ "request": "launch",
+ "preLaunchTask": "build",
+ // If you have changed target frameworks, make sure to update the program path.
+ "program": "${workspaceFolder}/Timeline/bin/Debug/netcoreapp2.2/Timeline.dll",
+ "args": [],
+ "cwd": "${workspaceFolder}/Timeline",
+ "stopAtEntry": false,
+ "launchBrowser": {
+ "enabled": true
+ },
+ "env": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "sourceFileMap": {
+ "/Views": "${workspaceFolder}/Views"
+ }
+ },
+ {
+ "name": ".NET Core Attach",
+ "type": "coreclr",
+ "request": "attach",
+ "processId": "${command:pickProcess}"
+ }
+ ]
+} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 00000000..eeb06c4f
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,36 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "build",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "build",
+ "${workspaceFolder}/Timeline/Timeline.csproj"
+ ],
+ "problemMatcher": "$tsc"
+ },
+ {
+ "label": "publish",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "publish",
+ "${workspaceFolder}/Timeline/Timeline.csproj"
+ ],
+ "problemMatcher": "$tsc"
+ },
+ {
+ "label": "watch",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "watch",
+ "run",
+ "${workspaceFolder}/Timeline/Timeline.csproj"
+ ],
+ "problemMatcher": "$tsc"
+ }
+ ]
+} \ No newline at end of file
diff --git a/tools/open-code b/tools/open-code
new file mode 100755
index 00000000..0ccc04c1
--- /dev/null
+++ b/tools/open-code
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+export DOTNET_ROOT=/opt/dotnet
+export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
+
+code $(dirname "$0")/..
+
+exit