SkillAgentSearch skills...

AnyScriptCs

A Visual Studio "15" extension that enables debugging scriptcs (http://scriptcs.net/) files via "Open Folder" (File > Open Folder)

Install / Use

/learn @hmemcpy/AnyScriptCs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

What's this?

This is an extension for Visual Studio "15" (vNext), adding support for debugging scriptcs scripts, when opening them with "Open Folder".

Note: this is a very early preview, and everything might change in the future.

Information

At Build 2016, Microsoft announced a new Visual Studio vNext feature called Open Folder:

Open Folder is a convenient way to navigate code bases without projects and solutions. The Solution Explorer has a new button to switch between Solution and Folder views. If MSBuild-based projects exist in the folder, the editor will provide IntelliSense for C# or Visual Basic files, and you can build or debug by using F5 and the file context menu in the Solution Explorer. Python and Node.js scripts can also be debugged after the respective Visual Studio tools are installed. Version control operations are available in the Solution Explorer for folders under Git version control.

Installation and configuration:

Grab the latest vsix file from the Releases page (or the Visual Studio Gallery), and double-click it to install in Visual Studio.

Once installed, open Visual Studio "15", select File > Open > Folder..., and select a folder containing scriptcs (*.csx) files

Right click on any .csx file, and select Set as Startup Item:

image

Finally, click the dropdown arrow of the Debug button, and select Customize:

image

A file called launch.json will open. We need to specify the path to scriptcs.exe inside the file like this:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "HelloWorld.csx",
      "project": "HelloWorld.csx",
	  "scriptcs_exe": "C:\\dev\\scriptcs\\src\\ScriptCs\\bin\\Release\\scriptcs.exe"
    }
  ]
}

Save the file, and press F5!

image

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated3y ago
Forks1

Languages

C#

Security Score

75/100

Audited on Jan 28, 2023

No findings