DotNetCore Version

This commit is contained in:
neuecc
2020-05-05 21:05:32 +09:00
parent 7cb0b17e6a
commit b9b2925e8d
46 changed files with 239 additions and 129 deletions

View File

@@ -0,0 +1,32 @@
using Cysharp.Threading.Tasks;
using System;
using System.Threading.Tasks;
namespace NetCoreSandbox
{
class Program
{
static async Task Main(string[] args)
{
Console.WriteLine("Foo");
var v = await DoAsync().AsTask();
Console.WriteLine("Bar:" + v);
}
static async UniTask<int> DoAsync()
{
var tcs = new UniTaskCompletionSource<int>();
tcs.TrySetResult(100);
var v = await tcs.Task;
return v;
}
}
}

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>NetCoreSandbox</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\UniTask.NetCore\UniTask.NetCore.csproj" />
</ItemGroup>
</Project>