Awesome
CS-Script.VSIX
Visual Studio 2017 CS-Script Tools extension CS-Script Tools extension allows managing C# scripts with Visual Studio 2017.
CS-Script resources:
- Summary: https://www.cs-script.net/
- Installation: https://chocolatey.org/packages/cs-script
- GitHub: https://github.com/oleg-shilo/cs-script
CS-Script Tools Tutorial
-
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 <br/>
-
Opening CS-Script Tools window In Visual Studio select
View->Other Windows->CS-Script Tools
menu:<br/> <br/> -
Creating new script
Click "New Script" command:<br/> <br/>
-
Opening existing script
-
With Open File dialog
- Click "Open Script" command:<br/>
- The Open File dialog will popup. Navigate and select the script file. The script file will be loaded into Visual Studio. <br/>
-
By Drag-n-drop
- Drag and drop the script file anywhere in the CS-Script Tools window.<br/>
- The script file will be loaded into Visual Studio. <br/>
-
-
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.
- Create a new script with the "New Script" command.
- Insert //css_include and //css_reference directives at the top of the script:<br/>
- Click on "Refresh Script Project" command:<br/>
- The script project will be updated with one new source file and new referenced assembly:<br/> <br/>
-
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:<br/>
Click the script item in the "Recent Scripts" list to open it in Visual Studio.<br/> <br/>
-
Executing CS-Script commands Click any of link button in the commands pane. The buttons have self explanatory captions:<br/>