Skip to content

A collection of developer related scripts powered by dotnet-script.

Notifications You must be signed in to change notification settings

seesharper/dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-scripts

Just a collection of C# scripts that makes my day.

Prerequisites

  • .Net Core
  • dotnet-script
  • You are on *nix (because I don't use Windows 😎)

Bootstrapping

Start by cloning this repo

git clone https://github.com/seesharper/dev-scripts.git

In the repo folder

dotnet script install-script.csx install-script.csx

Yup, look a bit funky, but that's bootstrapping for ya

Look through the following list of commands and if you like, you can "install" it like this.

install-script repo.csx

Makes a the script repo.csx globally available as repo

Commands

repo

Opens the current git repository in the default web browser.

appveyor

Opens the AppVeyor build history based on the current git repository.

travis

Opens the Travis build history based on the current git repository.

deps

Compares the NuGet package references found in csproj files with the latest versions found in the available NuGet feeds.

To get a an overview packages that can be updated, simply execute the following command in your repo/project folder.

deps

Filter packages

deps -f Microsoft

Update all NuGet packages

deps update

Update packages matching a filter

deps update -f Microsoft

make-global-tool

Turns you favourite script into a dotnet global tool.

make-global-tool main.csx -d "Some description" -v 1.0.0

We probably don't want to enter the description, tags and so on for every time we create a new version. The easy solution here is to put those parameters in a parameters file.

Let's call it package.specs

-d "Some description"

The we can call it like this

make-global-tool $(cat package.specs) -v 1.0.1

The make-global-tool is in fact already available as a global tool on NuGet so you can install it and use it without having dotnet-script installed.

dotnet tool install dotnet-make-global-tool -g

About

A collection of developer related scripts powered by dotnet-script.

Resources

Stars

Watchers

Forks

Packages