feat(*): Add base console application project

This commit is contained in:
Josh Creek
2021-05-23 21:33:07 +01:00
parent 446c22c083
commit 7df919c053
4 changed files with 81 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Update="Program.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Compile>
</ItemGroup>
</Project>
+35
View File
@@ -0,0 +1,35 @@
/*
City finder
Challenge: User enters a country and zip/postal code - this should return the city
Option 1: Do the challenge with fake data
Option 2: Contact another api using for example https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0 to get real data.
Info: If you want to validate a country code you could use https://docs.microsoft.com/en-us/dotnet/api/system.globalization.regioninfo?redirectedfrom=MSDN&view=net-5.0
public apis: https://github.com/public-apis/public-apis
*/
using Microsoft.Extensions.Configuration;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Net;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Linq;
using CityFinder.Models;
using System.Globalization;
using ConsoleTables;
namespace CityFinder
{
internal class Program
{
private static async Task Main(string[] args)
{
}
}
@@ -0,0 +1,7 @@
{
"profiles": {
"CityFinder": {
"commandName": "Project"
}
}
}