GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - scriptcs-contrib/scriptcs-sample-module: sample scriptcs module

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.nuget
.nuget
 
 
Properties
Properties
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
SampleModule.cs
SampleModule.cs
 
 
Scriptcs.SampleModule.csproj
Scriptcs.SampleModule.csproj
 
 
Scriptcs.SampleModule.sln
Scriptcs.SampleModule.sln
 
 
packages.config
packages.config
 
 

Repository files navigation

scriptcs-sample-module

sample scriptcs module

Illustrates a basic scriptcs module which configures a custom file system.

Testing my fork of scriptcs and the module

Installing

  • Install scriptcs
  • Clone this repo.
  • Open the solution and build it.
  • From the command line create a package: nuget pack -version 0.1.0-alpha
  • In VS edit your Nuget package sources and add the folder where the package lives.
  • Install the package globally: scriptcs -install scriptcs.samplemodule -g -pre

Forcing the module to load using the REPL.

  • Run scriptcs forcing the module to load: scriptcs -loglevel debug -modules sample
  • Check the log output for the messages "Sample module initialized" and "TestFileSystem created".

Loading the module automatically based on extension.

  • Create a boilerplace start.csx i.e. Console.WriteLine("Hello");
  • Run scriptcs with your file: `scriptcs start.csx -loglevel debug"
  • Check the log output for the messages "Sample module initialized" and "TestFileSystem created".

Note:

  • The "Sample module initialized" is outputted by the module
  • "TestFileSystem created" is outputted by the TestFileSystem override which the module configures. This happens when it is created during resolution.

About

sample scriptcs module

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.