Add project files.
This commit is contained in:
15
AOC.Shared/AOC.Shared.projitems
Normal file
15
AOC.Shared/AOC.Shared.projitems
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' < '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
<HasSharedItems>true</HasSharedItems>
|
||||
<SharedGUID>2a85c7ef-9de8-4c58-b15c-4d4393590b3f</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>AOC.Shared</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)AOCAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ProblemBase.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
13
AOC.Shared/AOC.Shared.shproj
Normal file
13
AOC.Shared/AOC.Shared.shproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>2a85c7ef-9de8-4c58-b15c-4d4393590b3f</ProjectGuid>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="AOC.Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
||||
18
AOC.Shared/AOCAttribute.cs
Normal file
18
AOC.Shared/AOCAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace AOC.Shared
|
||||
{
|
||||
public class ProblemInfoAttribute : Attribute
|
||||
{
|
||||
public int Day { get; init; }
|
||||
public string Year { get; init; }
|
||||
public string Name { get; init; }
|
||||
public ProblemInfoAttribute(string year, int day, string name) {
|
||||
Year = year;
|
||||
Day = day;
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
AOC.Shared/ProblemBase.cs
Normal file
14
AOC.Shared/ProblemBase.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace AOC.Shared
|
||||
{
|
||||
public interface IProblemBase
|
||||
{
|
||||
void LoadInput();
|
||||
|
||||
void CalculatePart1();
|
||||
|
||||
void PrintPart1();
|
||||
|
||||
void CalculatePart2();
|
||||
void PrintPart2();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user