Skip to content

hokiecsgrad/AdventOfCode2022

Repository files navigation

Advent Of Code 2022

Code for 2022's Advent of Code challenge.

https://adventofcode.com/2022

Project template

In the directory, AocTemplate you'll find a dotnet template structure so that new days can be added easily. The base usage for this is:

> dotnet new aoc --name Day01

This will create a directory structure that looks like the following:

Day01\
 --Day01.csproj
 --Program.cs
 --Day01.cs
 --input.txt
 --tests\
   --tests.csproj
   --Day01Tests.cs

Running tests

> cd Day01
> dotnet build && dotnet test tests/

Running that Day's solution

> cd Day01
> dotnet build && dotnet run

Un/Installing the Template

To install a template, once you've setup the template directory/structure as per the documentation here (https://docs.microsoft.com/en-us/dotnet/core/tools/custom-templates), then you can simply run the command

> dotnet new install AocTemplate/

To make changes to a template, you have to uninstall it and reinstall it. The uninstall command can be found by running

> dotnet new uninstall.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages