Visual Studio 2017 CS-Script Tools extension CS-Script Tools extension allows managing C# scripts with Visual Studio 2017.
- Summary: https://www.cs-script.net/
- Installation: https://chocolatey.org/packages/cs-script
- GitHub: https://github.com/oleg-shilo/cs-script
-
Installing CS-Script Tools
Install CS-Script.VSIX from Visual Studio extension manager or from Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=OlegShilo.CS-ScriptToolsVS2017
-
Opening CS-Script Tools window In Visual Studio select
View->Other Windows->CS-Script Tools
menu:
-
Creating new script
-
Opening existing script
-
With Open File dialog
- Click "Open Script" command:
- The Open File dialog will popup. Navigate and select the script file. The script file will be loaded into Visual Studio.
- Click "Open Script" command:
-
By Drag-n-drop
- Drag and drop the script file anywhere in the CS-Script Tools window.
- The script file will be loaded into Visual Studio.
- Drag and drop the script file anywhere in the CS-Script Tools window.
-
-
Refreshing opened script references
At any time you can trigger parsing CS-Script directives (//css_*) in order to update set of imported scripts and referenced assemblies. The following is a typical scenario for including spike.cs script and adding reference to System.Xml.dll assembly to the new script.cs script.
-
Opening script from the Recent Scripts list
The appearance and the implementation of the "Recent Scripts" is very similar to the "Recent Projects" list on the "Start page" of Visual Studio. This also includes support for context menus for script items for "Open Script", "Open Script Folder" and "Remove From List". This also includes "pinning" and "unpinning" items.
You can edit "Recent Scripts" content by executing "Manage Recent Scripts" command:
Click the script item in the "Recent Scripts" list to open it in Visual Studio.
-
Executing CS-Script commands Click any of link button in the commands pane. The buttons have self explanatory captions: