jayugg.VintageStory.Mod.Templates 1.4.2

dotnet new install jayugg.VintageStory.Mod.Templates::1.4.2
                    
This package contains a .NET Template Package you can call from the shell/command line.

Vintage Story content modding template for dotnet

This repository contains the following templates, which can be used with Rider, Visual Studio, or VS Code to create a new Vintage Story mod project:

Template Name              Short Name    Language  Tags                       
-------------------------  ------------  --------  ---------------------------
Vintage Story Code Mod     vscodemod     [C#]      Games/Modding/Vintage Story
Vintage Story Content Mod  vscontentmod  json      Games/Modding/Vintage Story
         
  • vscodemod A modified version of the official template with a few more advanced options.

  • vscontentmod Includes project using bas build script to zip mod archive

Installation

Requirements

  • .NET SDK 8.0+ (This is for v>=1.21.0, use a previous version for .NET7 templates.

Simply run the following command

dotnet new install jayugg.VintageStory.Mod.Templates
Local installation

Clone or download the repository, then enter the parent folder of your local copy of this repository and run the following command

cd VSContentModTemplates
dotnet pack
dotnet new install bin/Release/jayugg.Vintagestory.Mod.Templates.1.x.x.nupkg

Usage

Code Mod Template (vscodemod)

Check out also the Vintage Story wiki instructions on installing the official templates But replace the installation command with the one described above in the Installation section.

Content Mod Template (vscontentmod)

To see all the available generation options, run the command

dotnet new vscontentmod --help
Rider

In Rider you can create a new project and select the Vintage Story Content Mod template. The available options can be set in the GUI.

Alternatively, run the command (replace <ModName> with the name of your mod)

dotnet new vscontentmod -n <ModName>

If you have an arm64 Mac, you can use the --ArmMacOsLaunchSettings or -Ar flag to create working launch settings

dotnet new vscontentmod -n <ModName> --ArmMacOsLaunchSettings
Visual Studio

Project creation should be similar to Rider, but the run configurations are not automatically generated, so you will have to create them yourself. You should be able to set a simple configuration to run the existing scripts in the scripts folder. I cannot create them for Visual Studio as I do not have access to it. If you know how to create them, please submit a PR.

VS Code

Run the command (replace <ModName> with the name of your mod)

dotnet new vscontentmod -n <ModName> -VSLaunchSettings

Available launch settings

The template will generate the following scripts in the scripts folder if the -IncludeScripts flag is enabled (default):

  • Build: Packages the mod as a zip file in the Releases folder. Set ignored files in the .zipignore file.
  • Launch Client: Launches the game with the mod loaded.
  • Launch Server: Launches a game server with the mod loaded.

These are available for Rider and VS Code. Check the Rider or VS Code section sections or the scripts readme for more information.

Update

Nuget

Uninstall the previous version, then reinstall.

Local installation
cd VSContentModTemplates
dotnet pack
dotnet new install bin/Release/jayugg.Vintagestory.Mod.Templates.1.x.x.nupkg --force

Uninstall

You can go in the parent folder and run

Nuget
dotnet new uninstall jayugg.VintageStory.Mod.Templates
Local installation
dotnet new uninstall VSContentModTemplates

Alternatively you can run

dotnet new uninstall

and copy the generated command to uninstall this template

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.2 183 9/2/2025
1.4.1 165 9/1/2025
1.4.0 220 8/27/2025
1.3.5 233 3/31/2025
1.3.3 157 3/28/2025
1.3.2 510 3/25/2025
1.3.1 510 3/25/2025
1.3.0 528 3/24/2025
1.2.4 309 3/23/2025
1.1.2 198 3/22/2025
1.1.0 196 3/22/2025