dotnet Core example

This commit is contained in:
Alex Ellis
2017-04-12 10:41:32 +01:00
parent c3bbec09c1
commit b69bca09a3
5 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,5 @@
bin/
obj/
.nuget/
.dotnet/
.templateengine/

View File

@ -0,0 +1,25 @@
using System;
using System.Text;
namespace root
{
class Program
{
private static string getStdin() {
StringBuilder buffer = new StringBuilder();
string s;
while ((s = Console.ReadLine()) != null)
{
buffer.AppendLine(s);
}
return buffer.ToString();
}
static void Main(string[] args)
{
string buffer = getStdin();
Console.WriteLine(buffer);
}
}
}

View File

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
</Project>