Added sample netcore console app placeholder.

This commit is contained in:
Eugene Wang
2018-11-10 16:34:57 -05:00
parent 05f59a257c
commit 9e20510455
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\NTwain\NTwain.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,23 @@
using NTwain;
using System;
using System.Reflection;
namespace NetCoreConsole
{
class Program
{
static void Main(string[] args)
{
var config = new TwainConfigurationBuilder()
.DefineApp(Assembly.GetExecutingAssembly())
.Build();
using (var session = new TwainSession(config))
{
}
Console.WriteLine("Hello World!");
}
}
}