Ytils ShellYard

Ytils ShellYard

Ytils JsMrg@GitHub

ShellYard is a collection of shell scripts to support .NET library development.

Download Ytils ShellYardDownload Ytils ShellYard

NuGet package publishing to GitHub and quick .csproj version editing for your class libraries

ShellYard was created during the development of an AI software product in which minimal API functionality (coming soon) was outsourced to a class library project.

These scripts were created after being inspired by a YouTube video about private NuGet packages by Mark Inman.

ShellYard was created entirely with the help of artificial intelligence.

Release build and preparing nuget.config

In his tutorial, Inman edits the nuget.config file directly within bin/Release.

With build.sh you can place your GitHub publishing credentials within your project root (beside your appsettings.json) and generate your nuget.config into bin/Release.

Release build and preparing nuget.config (folder build-dotnet-library)

File Description
build.sh Copy to project root (beside .csproj file), together with nuget.template.config. Add a copy of .nuget.template.credentials as .nuget.credentials and add your GitHub credentials. When running build.sh, a copy of nuget.template.config will be created as nuget.config within bin/Release with the credentials from .nuget.credentials.
publish.nupkg.sh Copy to project root (beside .csproj file). This script runs the nuget push <file> --source "github" --skip-duplicate command and expects a valid nuget.config file, that can be created with build.sh.
upversion.nupkg.sh Copy to project root (beside .csproj file). When run, the script increases the bugfix versions within your .csproj file by 1. It increases <Version>, <AssemblyVersion>, <FileVersion>. Use additional parameter --minor to increase the minor version and --major to increase the major version.