AdventOfCSharp 1.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package AdventOfCSharp --version 1.2.1
NuGet\Install-Package AdventOfCSharp -Version 1.2.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="AdventOfCSharp" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AdventOfCSharp --version 1.2.1
#r "nuget: AdventOfCSharp, 1.2.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 AdventOfCSharp as a Cake Addin
#addin nuget:?package=AdventOfCSharp&version=1.2.1

// Install AdventOfCSharp as a Cake Tool
#tool nuget:?package=AdventOfCSharp&version=1.2.1

Advent of C#

An aspiring Advent of Code problem solving framework, offering a beginner-friendly ecosystem and large functionality. It aims to aid users into primarily focusing on the core of solving this marvelous event's problems, leaving the need for building their own infrastructure aside.

What is Advent of Code?

Advent of Code is an annual event running during December 1 through 25, presenting one two-part problem every day. Users are challenged to write a working solution for their personalized input, given the problem's description. More information on the website.

Donating

Donations are welcome on the specified links, and would be greatly appreciated. It is also planned to give a portion of 3% of the total donations to the event itself.

Project Template

Found here

Package

Features

  • Basic abstracted structure of a problem class, with simplified input parsing API
  • Automatic retrieval of personalized inputs and available correct outputs
    • Specify secrets in a secret cookie class that will be used by your local program
    • Without those session cookies, downloading from the website is disabled
  • Clean and colorful console interface
    • Running problems for specific day
    • Validating problem solutions
    • Execution time per part
    • Summary of all available solutions, and per individual parts
  • Answer conversion system, producing answer strings ready to be copied onto the website
  • Detailed part solution status declaration and tracking
  • Custom part solvers (fanmade "Part 3" problems, easter eggs, and more)
  • Source analyzers that ensure correct usage of the framework

Upcoming features:

  • Benchmarking
  • and more

Documentation

A full documentation guide outside the project template will be completed soon. For the time being, documentation is available on the docs directory.

Demo

https://user-images.githubusercontent.com/8298332/145657103-3462eee6-4598-4699-826a-507056efa5cc.mp4

All Problem Solution Validation

https://user-images.githubusercontent.com/8298332/145657111-45f16479-f238-4ba1-adb2-7ad12890afc4.mp4

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 (2)

Showing the top 2 NuGet packages that depend on AdventOfCSharp:

Package Downloads
AdventOfCSharp.Testing

Package Description

AdventOfCSharp.Benchmarking

Benchmarking tools for the Advent of C# framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.2 317 12/10/2022
1.4.1 302 12/1/2022
1.4.0 1,067 3/31/2022
1.3.1 416 2/22/2022
1.3.0 409 2/9/2022
1.2.1 393 1/26/2022
1.2.0 421 1/25/2022
1.1.0.1 253 1/8/2022
1.1.0 282 1/8/2022
1.0.2 267 12/12/2021
1.0.1 265 12/10/2021
1.0.0 270 12/6/2021

1.2.1 changes:
Changes:
- Object answer string converters are prohibited
- Display execution times parameters moved to separate options in ProblemRunner (BREAKING)
- Method resolution for problem types migrated to a dedicated class

Analyzers:
- Answer string converter analyzer, including 3 new diagnostics
- Properly upgrade dependency version

1.2.0 changes:
Additions:
- Automatic solution class generation upon failing to discover today's problem solution class (including publicly exposed API for custom dates)
- Live execution time printing (can be manually disabled, or automatically disabled for solutions with PrintsToConsoleAttribute)
- Run custom part solvers (with even more part number colors)
- IFinalDay
- PartSolutionStatus.Interactive

Changes:
- More documentation was added
- Part solver methods can be named and attributed with a kind (BREAKING)
- Separate download from input execution time
- Avoid printing input execution time if already loaded

Removals:
- BasicBenchmarking

Analyzers:
- Added AoCS0014 and AoCS0015 diagnostics

Internals:
- Upgraded Garyon and RoseLynn