diff options
author | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2022-12-08 19:45:35 +0100 |
---|---|---|
committer | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2022-12-08 19:45:35 +0100 |
commit | 65844a7ff88870f1336ccc10ceaba3b4c3bc2a25 (patch) | |
tree | 3f7804ea0fe16079b290dbf4720e87c8bd5ee451 /aoc-2022-dotnet/AoC.Day.Template | |
parent | 0557a772d6664339aecec85fefcbf034d82209cb (diff) | |
download | gleam_aoc2020-65844a7ff88870f1336ccc10ceaba3b4c3bc2a25.tar.gz gleam_aoc2020-65844a7ff88870f1336ccc10ceaba3b4c3bc2a25.zip |
Setup project template and generate day 9 files
Diffstat (limited to 'aoc-2022-dotnet/AoC.Day.Template')
5 files changed, 42 insertions, 0 deletions
diff --git a/aoc-2022-dotnet/AoC.Day.Template/.template.config/template.json b/aoc-2022-dotnet/AoC.Day.Template/.template.config/template.json new file mode 100644 index 0000000..14fe80c --- /dev/null +++ b/aoc-2022-dotnet/AoC.Day.Template/.template.config/template.json @@ -0,0 +1,15 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Tomasz Chojnacki", + "classifications": ["Common", "Console"], + "defaultName": "Day00", + "identity": "AoC.Day.Template", + "name": "AoC Day in F#", + "shortName": "aocdayinfsharp", + "sourceName": "AoC.Day.Template", + "tags": { + "language": "F#", + "type": "project" + }, + "description": "Project containing solution to a single day of Advent of Code in F#." +} diff --git a/aoc-2022-dotnet/AoC.Day.Template/AoC.Day.Template.fsproj b/aoc-2022-dotnet/AoC.Day.Template/AoC.Day.Template.fsproj new file mode 100644 index 0000000..e337a41 --- /dev/null +++ b/aoc-2022-dotnet/AoC.Day.Template/AoC.Day.Template.fsproj @@ -0,0 +1,18 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>net7.0</TargetFramework> + </PropertyGroup> + + <ItemGroup> + <Content Include="test.txt"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content> + <Content Include="input.txt"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content> + <Compile Include="Program.fs" /> + </ItemGroup> + +</Project> diff --git a/aoc-2022-dotnet/AoC.Day.Template/Program.fs b/aoc-2022-dotnet/AoC.Day.Template/Program.fs new file mode 100644 index 0000000..dbbfcd3 --- /dev/null +++ b/aoc-2022-dotnet/AoC.Day.Template/Program.fs @@ -0,0 +1,7 @@ +module AoC.Day.Template + +open System.IO + +let test = File.ReadLines("test.txt") + +let input = File.ReadLines("input.txt") diff --git a/aoc-2022-dotnet/AoC.Day.Template/input.txt b/aoc-2022-dotnet/AoC.Day.Template/input.txt new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/aoc-2022-dotnet/AoC.Day.Template/input.txt @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/aoc-2022-dotnet/AoC.Day.Template/test.txt b/aoc-2022-dotnet/AoC.Day.Template/test.txt new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/aoc-2022-dotnet/AoC.Day.Template/test.txt @@ -0,0 +1 @@ +
\ No newline at end of file |