`dotnet script` making C# / f# a script language
See original GitHub issuedotnet script --lang c# --langversion 7.2
C#>Console.WriteLine("hello world")
"hello world"
C#> import "./myCSharpScript.csx"; // or require("./myCSharpScript.csx") or import {MyStaticFunctions} from "./myCSharpScript";
C#> MyStaticFuntions.Sayhello("john")
"hello,john"
Making C# a script language and give it a environment
Other feature need in script environment
- Definition file (like typescript for example “Cake.csd”) [editor feature]
- import/require to import a script
- nuget and dll file suport (“
#r
#nuget
better to use an keywork making it more like scripting”)
I really hope that I can easily run C# scripts outside visual studio
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
C# and .NET Core scripting with the "dotnet-script" global tool
The 'new' command will create all the supporting code, obj, and bin folders ... C:\Users\scott\Desktop\scriptie>dotnet script helloworld.csx.
Read more >Writing C# build scripts with FAKE, OmniSharp and VS Code
In this blog post I'd like to show an extremely - in my opinion - productive way of writing build scripts using C#....
Read more >dotnet-install scripts - .NET CLI
The dotnet-install scripts perform a non-admin installation of the .NET SDK, which includes the .NET CLI and the shared runtime.
Read more >Use C# as a Scripting language — in VSCode! | by ilias shaikh
Scripting engine C# can be used as a scripting language using the compiler services from Roslyn. This has existed since Visual Studio 2015 ......
Read more >C# Scripting using dotnet-script - Elliot DeNolf
First, test that your script is functioning by running ./main.csx on your command line. You should see the Hello World! output. Windows machines ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fyi https://github.com/filipw/dotnet-script already implements C# scripting and even has a few more features than roslyn’s
csi
I would say ask on the roslyn issue: dotnet/roslyn#17666.
Actually, I am going to close this issue against that one.