chore: setup for day 7

This commit is contained in:
Stevan Freeborn
2024-12-07 13:00:55 -06:00
parent abf19be8cd
commit 49322f17de
5 changed files with 84 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<NoWarn>CA1822</NoWarn>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>CA1822</NoWarn>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BridgeRepair\BridgeRepair.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="TUnit" Version="0.4.83" />
</ItemGroup>
</Project>
+20
View File
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>CA1822</NoWarn>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
<ItemGroup>
<Content Include="..\INPUT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
+24
View File
@@ -0,0 +1,24 @@
using System.Diagnostics;
if (args.Length is 0)
{
Console.WriteLine("Please provide a path to the input file.");
return;
}
if (File.Exists(args[0]) is false)
{
Console.WriteLine("The provided file does not exist.");
return;
}
var isPart2 = args.Length is 2 && args[1] is "part2";
var input = await File.ReadAllLinesAsync(args[0]);
var stopwatch = new Stopwatch();
stopwatch.Start();
// TODO: Implement solution
stopwatch.Stop();
Console.WriteLine($". ({stopwatch.ElapsedMilliseconds}ms)");
+20
View File
@@ -50,6 +50,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuardGallivant", "06\GuardG
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuardGallivant.Tests", "06\GuardGallivant.Tests\GuardGallivant.Tests.csproj", "{F76B41EB-C479-437E-A98B-137A237E2B71}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuardGallivant.Tests", "06\GuardGallivant.Tests\GuardGallivant.Tests.csproj", "{F76B41EB-C479-437E-A98B-137A237E2B71}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "07", "07", "{73EE2FA2-6417-4518-9790-72D4F2B62CAF}"
ProjectSection(SolutionItems) = preProject
07\INPUT.txt = 07\INPUT.txt
07\PROBLEM.md = 07\PROBLEM.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BridgeRepair", "07\BridgeRepair\BridgeRepair.csproj", "{C9D192EE-0384-4875-BB32-54F7168D6C3C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BridgeRepair.Tests", "07\BridgeRepair.Tests\BridgeRepair.Tests.csproj", "{23C9756E-F2F4-44CA-B38A-DB92782D7858}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -107,6 +117,14 @@ Global
{F76B41EB-C479-437E-A98B-137A237E2B71}.Debug|Any CPU.Build.0 = Debug|Any CPU {F76B41EB-C479-437E-A98B-137A237E2B71}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F76B41EB-C479-437E-A98B-137A237E2B71}.Release|Any CPU.ActiveCfg = Release|Any CPU {F76B41EB-C479-437E-A98B-137A237E2B71}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F76B41EB-C479-437E-A98B-137A237E2B71}.Release|Any CPU.Build.0 = Release|Any CPU {F76B41EB-C479-437E-A98B-137A237E2B71}.Release|Any CPU.Build.0 = Release|Any CPU
{C9D192EE-0384-4875-BB32-54F7168D6C3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9D192EE-0384-4875-BB32-54F7168D6C3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9D192EE-0384-4875-BB32-54F7168D6C3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9D192EE-0384-4875-BB32-54F7168D6C3C}.Release|Any CPU.Build.0 = Release|Any CPU
{23C9756E-F2F4-44CA-B38A-DB92782D7858}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23C9756E-F2F4-44CA-B38A-DB92782D7858}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23C9756E-F2F4-44CA-B38A-DB92782D7858}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23C9756E-F2F4-44CA-B38A-DB92782D7858}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB} {1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB}
@@ -121,5 +139,7 @@ Global
{4563BCC8-A1E6-448C-BF2D-D0A3E85B9654} = {7253666E-E9DA-4F2E-9A19-8C40D96CC7C1} {4563BCC8-A1E6-448C-BF2D-D0A3E85B9654} = {7253666E-E9DA-4F2E-9A19-8C40D96CC7C1}
{ED53DF83-2434-413E-8D03-47694F4B63F7} = {293B49F7-594F-4F27-B018-A732820FB797} {ED53DF83-2434-413E-8D03-47694F4B63F7} = {293B49F7-594F-4F27-B018-A732820FB797}
{F76B41EB-C479-437E-A98B-137A237E2B71} = {293B49F7-594F-4F27-B018-A732820FB797} {F76B41EB-C479-437E-A98B-137A237E2B71} = {293B49F7-594F-4F27-B018-A732820FB797}
{C9D192EE-0384-4875-BB32-54F7168D6C3C} = {73EE2FA2-6417-4518-9790-72D4F2B62CAF}
{23C9756E-F2F4-44CA-B38A-DB92782D7858} = {73EE2FA2-6417-4518-9790-72D4F2B62CAF}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal