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

@@ -13,6 +13,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "common", "common", "{4CE0B9
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NTwain", "src\NTwain\NTwain.csproj", "{99A8D582-2CC1-479C-859D-C5A528A7B5C3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{FC732BDB-39BD-4064-B6D8-B79E25CFDA4A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreConsole", "samples\NetCoreConsole\NetCoreConsole.csproj", "{51EFA206-A46B-48B6-8110-67B07D85C5A2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -23,10 +27,17 @@ Global
{99A8D582-2CC1-479C-859D-C5A528A7B5C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99A8D582-2CC1-479C-859D-C5A528A7B5C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99A8D582-2CC1-479C-859D-C5A528A7B5C3}.Release|Any CPU.Build.0 = Release|Any CPU
{51EFA206-A46B-48B6-8110-67B07D85C5A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51EFA206-A46B-48B6-8110-67B07D85C5A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51EFA206-A46B-48B6-8110-67B07D85C5A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51EFA206-A46B-48B6-8110-67B07D85C5A2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{51EFA206-A46B-48B6-8110-67B07D85C5A2} = {FC732BDB-39BD-4064-B6D8-B79E25CFDA4A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7459323B-44F6-4E07-8574-E1B4B525086B}
EndGlobalSection

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!");
}
}
}