mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 21:48:36 +08:00
Added sample netcore console app placeholder.
This commit is contained in:
11
NTwain.sln
11
NTwain.sln
@@ -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
|
||||
|
||||
12
samples/NetCoreConsole/NetCoreConsole.csproj
Normal file
12
samples/NetCoreConsole/NetCoreConsole.csproj
Normal 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>
|
||||
23
samples/NetCoreConsole/Program.cs
Normal file
23
samples/NetCoreConsole/Program.cs
Normal 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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user