Skip to content

Instantly share code, notes, and snippets.

@onionhammer
Created September 28, 2019 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onionhammer/4ca5897ec47fcc81b04a4aba04dc0d5b to your computer and use it in GitHub Desktop.
Save onionhammer/4ca5897ec47fcc81b04a4aba04dc0d5b to your computer and use it in GitHub Desktop.
From 1d2b32e97bbefc77ffe11776c03d59a1bf351e7a Mon Sep 17 00:00:00 2001
Date: Fri, 27 Sep 2019 21:51:04 -0500
Subject: [PATCH] Initial commit
---
.config/dotnet-tools.json | 12 ++++++++++++
.vscode/launch.json | 18 ++++++++++++++++++
main.csx | 3 +++
omnisharp.json | 6 ++++++
4 files changed, 39 insertions(+)
create mode 100644 .config/dotnet-tools.json
create mode 100644 .vscode/launch.json
create mode 100755 main.csx
create mode 100644 omnisharp.json
diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
new file mode 100644
index 0000000..c80e7d6
--- /dev/null
+++ b/.config/dotnet-tools.json
@@ -0,0 +1,12 @@
+{
+ "version": 1,
+ "isRoot": true,
+ "tools": {
+ "dotnet-script": {
+ "version": "0.50.0",
+ "commands": [
+ "dotnet-script"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..6727af5
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,18 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": ".NET Script Debug",
+ "type": "coreclr",
+ "request": "launch",
+ "program": "dotnet",
+ "args": [
+ "exec",
+ "~/.nuget/packages/dotnet-script/0.50.0/tools/netcoreapp3.0/any/dotnet-script.dll",
+ "${file}"
+ ],
+ "cwd": "${workspaceRoot}",
+ "stopAtEntry": true
+ }
+ ]
+}
\ No newline at end of file
diff --git a/main.csx b/main.csx
new file mode 100755
index 0000000..3834fb2
--- /dev/null
+++ b/main.csx
@@ -0,0 +1,3 @@
+#!/usr/bin/env dotnet dotnet-script
+
+Console.WriteLine("Hello world!");
diff --git a/omnisharp.json b/omnisharp.json
new file mode 100644
index 0000000..991180f
--- /dev/null
+++ b/omnisharp.json
@@ -0,0 +1,6 @@
+{
+ "script": {
+ "enableScriptNuGetReferences": true,
+ "defaultTargetFramework": "netcoreapp3.0"
+ }
+}
\ No newline at end of file
--
2.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment