TerevintoSoftware.StaticSiteGenerator 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package TerevintoSoftware.StaticSiteGenerator --version 1.1.1
NuGet\Install-Package TerevintoSoftware.StaticSiteGenerator -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TerevintoSoftware.StaticSiteGenerator" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TerevintoSoftware.StaticSiteGenerator --version 1.1.1
#r "nuget: TerevintoSoftware.StaticSiteGenerator, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TerevintoSoftware.StaticSiteGenerator as a Cake Addin
#addin nuget:?package=TerevintoSoftware.StaticSiteGenerator&version=1.1.1

// Install TerevintoSoftware.StaticSiteGenerator as a Cake Tool
#tool nuget:?package=TerevintoSoftware.StaticSiteGenerator&version=1.1.1

TerevintoSoftware.StaticSiteGenerator

This project aims to provide a way for c# developers to benefit from very cheap/free hosting through static files, while allowing them to use familiar ASP.NET MVC concepts (Views, Partials, Layouts, etc). This also allows you to have an initial static site that you can then update to a dynamic website backed by ASP.NET Core without starting from scratch.

Since this project converts Views into HTML files, it is not possible (at least yet) to use Models.

Packages

This project is divided in two packages:

Package Purpose
TerevintoSoftware.StaticSiteGenerator Contains the main logic of the project, depends on ASP.NET Core.
TerevintoSoftware.StaticSiteGenerator.Tool Contains a .NET Tool that can be invoked to perform the generation.

Sample usage

  1. Install the tool: dotnet tool install TerevintoSoftware.StaticSiteGenerator.Tool
  2. (optional) Create a new project: dotnet new mvc -o MyProject
  3. (optional) See the available options with ssg -h
  4. Run the static site generation: ssg --project [project-path] --output [output-path]

How to build

  • Install Visual Studio 2022 (.NET 6 required), if needed. The ASP.NET Core workload is required to build the project.
  • Install git, if needed.
  • Clone this repository.
  • Build from Visual Studio or through dotnet build.

Bug reports and feature requests

Please use the issue tracker and ensure your question/feedback was not previously reported.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.0 174 11/17/2023
1.4.1 153 7/30/2023
1.4.0 230 3/7/2023
1.3.5 227 3/5/2023
1.3.2 456 9/18/2022
1.3.1 379 8/28/2022
1.3.0 384 8/20/2022
1.2.2 403 6/27/2022
1.2.1 408 6/11/2022
1.2.0 405 6/5/2022
1.1.1 402 5/30/2022

[1.1.1]: Fixes a URL generation bug for the default Controller actions.
[1.1.0]: Adds a new option to specify the casing convention for routes and adds more flexibility to automatically discovered routes.
[1.0.2]: Fixes to URL generation
[1.0.1]: Minor fix to performance
[1.0.0]: First major version. Improve CMD arguments, error handling and fix link generation.