diff --git a/NTwain.sln b/NTwain.sln index 5dc836f..7c347bb 100644 --- a/NTwain.sln +++ b/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 diff --git a/samples/NetCoreConsole/NetCoreConsole.csproj b/samples/NetCoreConsole/NetCoreConsole.csproj new file mode 100644 index 0000000..1aec446 --- /dev/null +++ b/samples/NetCoreConsole/NetCoreConsole.csproj @@ -0,0 +1,12 @@ + + + + Exe + netcoreapp2.1 + + + + + + + diff --git a/samples/NetCoreConsole/Program.cs b/samples/NetCoreConsole/Program.cs new file mode 100644 index 0000000..4721d4b --- /dev/null +++ b/samples/NetCoreConsole/Program.cs @@ -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!"); + } + } +}