mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 13:39:47 +08:00
Testing new twain session ctor.
This commit is contained in:
16
samples/Console32/Console32.csproj
Normal file
16
samples/Console32/Console32.csproj
Normal file
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<RootNamespace>SampleConsole</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\NTwain\NTwain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
13
samples/Console32/Program.cs
Normal file
13
samples/Console32/Program.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using NTwain;
|
||||
using System.Reflection;
|
||||
|
||||
namespace SampleConsole
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var twain = new TwainSession(Environment.ProcessPath ?? Assembly.GetExecutingAssembly().Location);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user