https://kastle-mural-finder.herokuapp.com/
hero : Photo by ryan haft on Unsplash
Photo by Drew Coffman on Unsplash
This is the template app SDG uses to start off learning C# and .NET
This provides a basic console application with the following features:
- A gitignore
- A README
- Tasks that allows users to push to GitHub Automatically.
- EF Core integration
- a basic React SPA + Web API
- docker set up
- Swagger documentations
- CORS
- Dependency Injection of DbContext
- Scaffolding
- React integration
First, read the docs.
Now with that in mind, The project has 3 main parts:
-
sdg-react-template.nuspec
. This file contains the meta data for the package that is built, The only items that need touched are the<files>
and the<version>
-
SampleApp
. This is sample project. Any changes to the template happen here. -
SampleApp\template.config
. This contains the behavior of the package. This generally isn't touch unless you are changing the project type.
To update, I would recommend opening just the SampleApp
Folder and working in that project like it was just a normal C# app. Get things working and then test it out.
Install nuget and set your API key for nuget.org
- Delete the
bin
and theobj
folder - Bump the version number in the
sdg-react-template.nuspec
. - run
nuget pack .
- run
nuget push SDG.templates.Web.React.X.X.X.nupkg -Source https://www.nuget.org
with the correct version number
This will push it to Nuget. Nuget will index the package, and when it's done indexing (~ 1-30 minutes), it will available for install. To install on a students laptop
dotnet new --install SDG.templates.Web.React::X.X.X
To update after download, its the same command
dotnet new --install SDG.templates.Web.React::X.X.X