diff --git a/ademco_hb.sln b/ademco_hb.sln index 3cdefe32ecb5315e5c6d54d43e5ffb3ad16e7142..5248f0c510e923bba4d2472a8ba13e291c8a610c 100644 --- a/ademco_hb.sln +++ b/ademco_hb.sln @@ -14,46 +14,70 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll_demo", "dll_demo\dll_de {EF267749-DA49-433D-BF4E-742D4BC7F1DA} = {EF267749-DA49-433D-BF4E-742D4BC7F1DA} EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csharp_dll_demo", "csharp_dll_demo\csharp_dll_demo.csproj", "{3381C5DE-57BF-425F-A3A6-B85DECF776D6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {36640D95-55AB-4DCF-9062-91A53203E6A9}.Debug|Any CPU.ActiveCfg = Debug|Win32 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Debug|x64.ActiveCfg = Debug|x64 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Debug|x64.Build.0 = Debug|x64 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Debug|x86.ActiveCfg = Debug|Win32 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Debug|x86.Build.0 = Debug|Win32 + {36640D95-55AB-4DCF-9062-91A53203E6A9}.Release|Any CPU.ActiveCfg = Release|Win32 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Release|x64.ActiveCfg = Release|x64 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Release|x64.Build.0 = Release|x64 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Release|x86.ActiveCfg = Release|Win32 {36640D95-55AB-4DCF-9062-91A53203E6A9}.Release|x86.Build.0 = Release|Win32 + {EA5A04AA-EE49-4059-81A0-765402A210E7}.Debug|Any CPU.ActiveCfg = Debug|Win32 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Debug|x64.ActiveCfg = Debug|x64 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Debug|x64.Build.0 = Debug|x64 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Debug|x86.ActiveCfg = Debug|Win32 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Debug|x86.Build.0 = Debug|Win32 + {EA5A04AA-EE49-4059-81A0-765402A210E7}.Release|Any CPU.ActiveCfg = Release|Win32 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Release|x64.ActiveCfg = Release|x64 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Release|x64.Build.0 = Release|x64 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Release|x86.ActiveCfg = Release|Win32 {EA5A04AA-EE49-4059-81A0-765402A210E7}.Release|x86.Build.0 = Release|Win32 + {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Debug|Any CPU.ActiveCfg = Debug|Win32 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Debug|x64.ActiveCfg = Debug|x64 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Debug|x64.Build.0 = Debug|x64 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Debug|x86.ActiveCfg = Debug|Win32 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Debug|x86.Build.0 = Debug|Win32 + {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Release|Any CPU.ActiveCfg = Release|Win32 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Release|x64.ActiveCfg = Release|x64 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Release|x64.Build.0 = Release|x64 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Release|x86.ActiveCfg = Release|Win32 {EF267749-DA49-433D-BF4E-742D4BC7F1DA}.Release|x86.Build.0 = Release|Win32 + {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Debug|Any CPU.ActiveCfg = Debug|Win32 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Debug|x64.ActiveCfg = Debug|x64 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Debug|x64.Build.0 = Debug|x64 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Debug|x86.ActiveCfg = Debug|Win32 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Debug|x86.Build.0 = Debug|Win32 + {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Release|Any CPU.ActiveCfg = Release|Win32 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Release|x64.ActiveCfg = Release|x64 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Release|x64.Build.0 = Release|x64 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Release|x86.ActiveCfg = Release|Win32 {76899E2F-3026-4262-8D0A-EE7CED1020CF}.Release|x86.Build.0 = Release|Win32 + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|x64.ActiveCfg = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|x64.Build.0 = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|x86.ActiveCfg = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Debug|x86.Build.0 = Debug|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|Any CPU.Build.0 = Release|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|x64.ActiveCfg = Release|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|x64.Build.0 = Release|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|x86.ActiveCfg = Release|Any CPU + {3381C5DE-57BF-425F-A3A6-B85DECF776D6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ademco_hb/ademco_hb.h b/ademco_hb/ademco_hb.h index 511e212c2e12f9203ff7ae1fa244ebcfbd47d13a..7181d2ff793e51954d237e5cf9da74ec9a00a3cc 100644 --- a/ademco_hb/ademco_hb.h +++ b/ademco_hb/ademco_hb.h @@ -11,5 +11,5 @@ //! 1 è§£æžåˆ°æ£ç¡®ã€ä¸å®Œæ•´çš„一包,需è¦ç¼“å˜æ•°æ®ï¼Œä¸‹æ¬¡ç»§ç»å¤„ç† //! 2 è§£æžåˆ°é”™è¯¯çš„æ•°æ®ï¼Œéœ€è¦æ¸…空缓冲区 DLL_FUNC -int parse(const char* pack, size_t pack_len, size_t& cb_commited); +int parse(const char* pack, int pack_len, int* cb_commited); diff --git a/ademco_hb/ademco_hb.vcxproj b/ademco_hb/ademco_hb.vcxproj index 2ce7bb23ee9114f60e9fc06fb6ca7be5ca101102..26961bf16db753a9938f69d88d0e07cc66945ecd 100644 --- a/ademco_hb/ademco_hb.vcxproj +++ b/ademco_hb/ademco_hb.vcxproj @@ -31,6 +31,7 @@ <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> + <CLRSupport>false</CLRSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> @@ -95,6 +96,8 @@ <ConformanceMode>true</ConformanceMode> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> <AdditionalIncludeDirectories>$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <CallingConvention>Cdecl</CallingConvention> + <CompileAs>Default</CompileAs> </ClCompile> <Link> <SubSystem>Windows</SubSystem> @@ -130,6 +133,7 @@ <PreprocessorDefinitions>_DEBUG;ADEMCOHB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> + <AdditionalIncludeDirectories>$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Windows</SubSystem> @@ -148,6 +152,7 @@ <PreprocessorDefinitions>NDEBUG;ADEMCOHB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> + <AdditionalIncludeDirectories>$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Windows</SubSystem> diff --git a/ademco_hb/dllmain.cpp b/ademco_hb/dllmain.cpp index 82bdf34b852f1b166f80e399a56438ff730e580e..b4a37b0f61e04056949190750ab4c63ffdcc11ca 100644 --- a/ademco_hb/dllmain.cpp +++ b/ademco_hb/dllmain.cpp @@ -21,9 +21,11 @@ BOOL APIENTRY DllMain( HMODULE hModule, return TRUE; } -int parse(const char* pack, size_t pack_len, size_t& cb_commited) +int parse(const char* pack, int pack_len, int* cb_commited) { ademco::AdemcoPacket ap; - auto result = ap.parse(pack, pack_len, cb_commited); + size_t commited = 0; + auto result = ap.parse(pack, static_cast<size_t>(pack_len), commited); + *cb_commited = static_cast<int>(commited); return static_cast<int>(result); } diff --git a/csharp_dll_demo/Program.cs b/csharp_dll_demo/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..1c54bb2153e0cdbd1c6883c04917d607d6aa35ba --- /dev/null +++ b/csharp_dll_demo/Program.cs @@ -0,0 +1,27 @@ +using System; + +using System.Runtime.InteropServices; + +namespace csharp_dll_demo +{ + class Program + { + [DllImport(@"G:\dev_libs\ademco_hb\x64\Release\ademco_hb.dll", + EntryPoint = "parse", + CallingConvention = CallingConvention.Cdecl)] + public static extern Int32 parse(string buf, Int32 buf_len, ref Int32 commited); + + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + + //IntPtr commited = new IntPtr(); + string raw = "\nC5C30053\"HENG-BO\"0000R000000L000000#90219125916578[#000000|1737 00 000]_09:11:19,08-05-2019\r"; + Int32 commited = 0; + byte[] data = System.Text.Encoding.Default.GetBytes(raw); + Int32 res = parse(raw, raw.Length, ref commited); + + Console.WriteLine("res={0:D}, commited={1:D}", res, commited); + } + } +} diff --git a/csharp_dll_demo/csharp_dll_demo.csproj b/csharp_dll_demo/csharp_dll_demo.csproj new file mode 100644 index 0000000000000000000000000000000000000000..7eccf13f173fab3b2b0653ce729e75934ec05fb9 --- /dev/null +++ b/csharp_dll_demo/csharp_dll_demo.csproj @@ -0,0 +1,13 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp2.1</TargetFramework> + </PropertyGroup> + + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> + <Prefer32Bit>false</Prefer32Bit> + <PlatformTarget>AnyCPU</PlatformTarget> + </PropertyGroup> + +</Project> diff --git a/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.cache b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..d97e7cbb70f72ea113f5914dddfbfcca38d813c1 --- /dev/null +++ b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.cache @@ -0,0 +1,5 @@ +{ + "version": 1, + "dgSpecHash": "FDUB06sqIrxY1NL2DCOnWir0yLn0cfS7UOQ3r27O7itJpNLP8ngEnZQ7woGolkt99yRPQK18ZL8ma5jkdqxccw==", + "success": true +} \ No newline at end of file diff --git a/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.dgspec.json b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..d42909ce7efc0994c9314cef7843378385392f6a --- /dev/null +++ b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.dgspec.json @@ -0,0 +1,59 @@ +{ + "format": 1, + "restore": { + "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj": {} + }, + "projects": { + "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj", + "projectName": "csharp_dll_demo", + "projectPath": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj", + "packagesPath": "C:\\Users\\Jack\\.nuget\\packages\\", + "outputPath": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], + "configFilePaths": [ + "C:\\Users\\Jack\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp2.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp2.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp2.1": { + "dependencies": { + "Microsoft.NETCore.App": { + "target": "Package", + "version": "[2.1.0, )", + "autoReferenced": true + } + }, + "imports": [ + "net461" + ], + "assetTargetFallback": true, + "warn": true + } + } + } + } +} \ No newline at end of file diff --git a/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.props b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..c7ed6cac4d708670e3ba6498393e1ecb5f91007c --- /dev/null +++ b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.props @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Jack\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.2.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> + <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.props')" /> + </ImportGroup> +</Project> \ No newline at end of file diff --git a/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.targets b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..7451e0fb0030c71a3e5903003818b723a8edbb5c --- /dev/null +++ b/csharp_dll_demo/obj/csharp_dll_demo.csproj.nuget.g.targets @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> + <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" /> + <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.targets')" /> + </ImportGroup> +</Project> \ No newline at end of file diff --git a/csharp_dll_demo/obj/project.assets.json b/csharp_dll_demo/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..dacb77c76395cbaf16fc102f1182fd423e0c1ac7 --- /dev/null +++ b/csharp_dll_demo/obj/project.assets.json @@ -0,0 +1,745 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v2.1": { + "Microsoft.NETCore.App/2.1.0": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.DotNetHostPolicy": "2.1.0", + "Microsoft.NETCore.Platforms": "2.1.0", + "Microsoft.NETCore.Targets": "2.1.0", + "NETStandard.Library": "2.0.3" + }, + "compile": { + "ref/netcoreapp2.1/Microsoft.CSharp.dll": {}, + "ref/netcoreapp2.1/Microsoft.VisualBasic.dll": {}, + "ref/netcoreapp2.1/Microsoft.Win32.Primitives.dll": {}, + "ref/netcoreapp2.1/System.AppContext.dll": {}, + "ref/netcoreapp2.1/System.Buffers.dll": {}, + "ref/netcoreapp2.1/System.Collections.Concurrent.dll": {}, + "ref/netcoreapp2.1/System.Collections.Immutable.dll": {}, + "ref/netcoreapp2.1/System.Collections.NonGeneric.dll": {}, + "ref/netcoreapp2.1/System.Collections.Specialized.dll": {}, + "ref/netcoreapp2.1/System.Collections.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.Annotations.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.DataAnnotations.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.EventBasedAsync.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.Primitives.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.TypeConverter.dll": {}, + "ref/netcoreapp2.1/System.ComponentModel.dll": {}, + "ref/netcoreapp2.1/System.Configuration.dll": {}, + "ref/netcoreapp2.1/System.Console.dll": {}, + "ref/netcoreapp2.1/System.Core.dll": {}, + "ref/netcoreapp2.1/System.Data.Common.dll": {}, + "ref/netcoreapp2.1/System.Data.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.Contracts.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.Debug.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.DiagnosticSource.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.FileVersionInfo.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.Process.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.StackTrace.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.TextWriterTraceListener.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.Tools.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.TraceSource.dll": {}, + "ref/netcoreapp2.1/System.Diagnostics.Tracing.dll": {}, + "ref/netcoreapp2.1/System.Drawing.Primitives.dll": {}, + "ref/netcoreapp2.1/System.Drawing.dll": {}, + "ref/netcoreapp2.1/System.Dynamic.Runtime.dll": {}, + "ref/netcoreapp2.1/System.Globalization.Calendars.dll": {}, + "ref/netcoreapp2.1/System.Globalization.Extensions.dll": {}, + "ref/netcoreapp2.1/System.Globalization.dll": {}, + "ref/netcoreapp2.1/System.IO.Compression.Brotli.dll": {}, + "ref/netcoreapp2.1/System.IO.Compression.FileSystem.dll": {}, + "ref/netcoreapp2.1/System.IO.Compression.ZipFile.dll": {}, + "ref/netcoreapp2.1/System.IO.Compression.dll": {}, + "ref/netcoreapp2.1/System.IO.FileSystem.DriveInfo.dll": {}, + "ref/netcoreapp2.1/System.IO.FileSystem.Primitives.dll": {}, + "ref/netcoreapp2.1/System.IO.FileSystem.Watcher.dll": {}, + "ref/netcoreapp2.1/System.IO.FileSystem.dll": {}, + "ref/netcoreapp2.1/System.IO.IsolatedStorage.dll": {}, + "ref/netcoreapp2.1/System.IO.MemoryMappedFiles.dll": {}, + "ref/netcoreapp2.1/System.IO.Pipes.dll": {}, + "ref/netcoreapp2.1/System.IO.UnmanagedMemoryStream.dll": {}, + "ref/netcoreapp2.1/System.IO.dll": {}, + "ref/netcoreapp2.1/System.Linq.Expressions.dll": {}, + "ref/netcoreapp2.1/System.Linq.Parallel.dll": {}, + "ref/netcoreapp2.1/System.Linq.Queryable.dll": {}, + "ref/netcoreapp2.1/System.Linq.dll": {}, + "ref/netcoreapp2.1/System.Memory.dll": {}, + "ref/netcoreapp2.1/System.Net.Http.dll": {}, + "ref/netcoreapp2.1/System.Net.HttpListener.dll": {}, + "ref/netcoreapp2.1/System.Net.Mail.dll": {}, + "ref/netcoreapp2.1/System.Net.NameResolution.dll": {}, + "ref/netcoreapp2.1/System.Net.NetworkInformation.dll": {}, + "ref/netcoreapp2.1/System.Net.Ping.dll": {}, + "ref/netcoreapp2.1/System.Net.Primitives.dll": {}, + "ref/netcoreapp2.1/System.Net.Requests.dll": {}, + "ref/netcoreapp2.1/System.Net.Security.dll": {}, + "ref/netcoreapp2.1/System.Net.ServicePoint.dll": {}, + "ref/netcoreapp2.1/System.Net.Sockets.dll": {}, + "ref/netcoreapp2.1/System.Net.WebClient.dll": {}, + "ref/netcoreapp2.1/System.Net.WebHeaderCollection.dll": {}, + "ref/netcoreapp2.1/System.Net.WebProxy.dll": {}, + "ref/netcoreapp2.1/System.Net.WebSockets.Client.dll": {}, + "ref/netcoreapp2.1/System.Net.WebSockets.dll": {}, + "ref/netcoreapp2.1/System.Net.dll": {}, + "ref/netcoreapp2.1/System.Numerics.Vectors.dll": {}, + "ref/netcoreapp2.1/System.Numerics.dll": {}, + "ref/netcoreapp2.1/System.ObjectModel.dll": {}, + "ref/netcoreapp2.1/System.Reflection.DispatchProxy.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Emit.ILGeneration.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Emit.Lightweight.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Emit.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Extensions.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Metadata.dll": {}, + "ref/netcoreapp2.1/System.Reflection.Primitives.dll": {}, + "ref/netcoreapp2.1/System.Reflection.TypeExtensions.dll": {}, + "ref/netcoreapp2.1/System.Reflection.dll": {}, + "ref/netcoreapp2.1/System.Resources.Reader.dll": {}, + "ref/netcoreapp2.1/System.Resources.ResourceManager.dll": {}, + "ref/netcoreapp2.1/System.Resources.Writer.dll": {}, + "ref/netcoreapp2.1/System.Runtime.CompilerServices.VisualC.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Extensions.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Handles.dll": {}, + "ref/netcoreapp2.1/System.Runtime.InteropServices.RuntimeInformation.dll": {}, + "ref/netcoreapp2.1/System.Runtime.InteropServices.WindowsRuntime.dll": {}, + "ref/netcoreapp2.1/System.Runtime.InteropServices.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Loader.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Numerics.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Serialization.Formatters.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Serialization.Json.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Serialization.Primitives.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Serialization.Xml.dll": {}, + "ref/netcoreapp2.1/System.Runtime.Serialization.dll": {}, + "ref/netcoreapp2.1/System.Runtime.dll": {}, + "ref/netcoreapp2.1/System.Security.Claims.dll": {}, + "ref/netcoreapp2.1/System.Security.Cryptography.Algorithms.dll": {}, + "ref/netcoreapp2.1/System.Security.Cryptography.Csp.dll": {}, + "ref/netcoreapp2.1/System.Security.Cryptography.Encoding.dll": {}, + "ref/netcoreapp2.1/System.Security.Cryptography.Primitives.dll": {}, + "ref/netcoreapp2.1/System.Security.Cryptography.X509Certificates.dll": {}, + "ref/netcoreapp2.1/System.Security.Principal.dll": {}, + "ref/netcoreapp2.1/System.Security.SecureString.dll": {}, + "ref/netcoreapp2.1/System.Security.dll": {}, + "ref/netcoreapp2.1/System.ServiceModel.Web.dll": {}, + "ref/netcoreapp2.1/System.ServiceProcess.dll": {}, + "ref/netcoreapp2.1/System.Text.Encoding.Extensions.dll": {}, + "ref/netcoreapp2.1/System.Text.Encoding.dll": {}, + "ref/netcoreapp2.1/System.Text.RegularExpressions.dll": {}, + "ref/netcoreapp2.1/System.Threading.Overlapped.dll": {}, + "ref/netcoreapp2.1/System.Threading.Tasks.Dataflow.dll": {}, + "ref/netcoreapp2.1/System.Threading.Tasks.Extensions.dll": {}, + "ref/netcoreapp2.1/System.Threading.Tasks.Parallel.dll": {}, + "ref/netcoreapp2.1/System.Threading.Tasks.dll": {}, + "ref/netcoreapp2.1/System.Threading.Thread.dll": {}, + "ref/netcoreapp2.1/System.Threading.ThreadPool.dll": {}, + "ref/netcoreapp2.1/System.Threading.Timer.dll": {}, + "ref/netcoreapp2.1/System.Threading.dll": {}, + "ref/netcoreapp2.1/System.Transactions.Local.dll": {}, + "ref/netcoreapp2.1/System.Transactions.dll": {}, + "ref/netcoreapp2.1/System.ValueTuple.dll": {}, + "ref/netcoreapp2.1/System.Web.HttpUtility.dll": {}, + "ref/netcoreapp2.1/System.Web.dll": {}, + "ref/netcoreapp2.1/System.Windows.dll": {}, + "ref/netcoreapp2.1/System.Xml.Linq.dll": {}, + "ref/netcoreapp2.1/System.Xml.ReaderWriter.dll": {}, + "ref/netcoreapp2.1/System.Xml.Serialization.dll": {}, + "ref/netcoreapp2.1/System.Xml.XDocument.dll": {}, + "ref/netcoreapp2.1/System.Xml.XPath.XDocument.dll": {}, + "ref/netcoreapp2.1/System.Xml.XPath.dll": {}, + "ref/netcoreapp2.1/System.Xml.XmlDocument.dll": {}, + "ref/netcoreapp2.1/System.Xml.XmlSerializer.dll": {}, + "ref/netcoreapp2.1/System.Xml.dll": {}, + "ref/netcoreapp2.1/System.dll": {}, + "ref/netcoreapp2.1/WindowsBase.dll": {}, + "ref/netcoreapp2.1/mscorlib.dll": {}, + "ref/netcoreapp2.1/netstandard.dll": {} + }, + "build": { + "build/netcoreapp2.1/Microsoft.NETCore.App.props": {}, + "build/netcoreapp2.1/Microsoft.NETCore.App.targets": {} + } + }, + "Microsoft.NETCore.DotNetAppHost/2.1.0": { + "type": "package" + }, + "Microsoft.NETCore.DotNetHostPolicy/2.1.0": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.DotNetHostResolver": "2.1.0" + } + }, + "Microsoft.NETCore.DotNetHostResolver/2.1.0": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.DotNetAppHost": "2.1.0" + } + }, + "Microsoft.NETCore.Platforms/2.1.0": { + "type": "package", + "compile": { + "lib/netstandard1.0/_._": {} + }, + "runtime": { + "lib/netstandard1.0/_._": {} + } + }, + "Microsoft.NETCore.Targets/2.1.0": { + "type": "package", + "compile": { + "lib/netstandard1.0/_._": {} + }, + "runtime": { + "lib/netstandard1.0/_._": {} + } + }, + "NETStandard.Library/2.0.3": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0" + }, + "compile": { + "lib/netstandard1.0/_._": {} + }, + "runtime": { + "lib/netstandard1.0/_._": {} + }, + "build": { + "build/netstandard2.0/NETStandard.Library.targets": {} + } + } + } + }, + "libraries": { + "Microsoft.NETCore.App/2.1.0": { + "sha512": "JNHhG+j5eIhG26+H721IDmwswGUznTwwSuJMFe/08h0X2YarHvA15sVAvUkA/2Sp3W0ENNm48t+J7KTPRqEpfA==", + "type": "package", + "path": "microsoft.netcore.app/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "Microsoft.NETCore.App.versions.txt", + "THIRD-PARTY-NOTICES.TXT", + "build/netcoreapp2.1/Microsoft.NETCore.App.PlatformManifest.txt", + "build/netcoreapp2.1/Microsoft.NETCore.App.props", + "build/netcoreapp2.1/Microsoft.NETCore.App.targets", + "microsoft.netcore.app.2.1.0.nupkg.sha512", + "microsoft.netcore.app.nuspec", + "ref/netcoreapp/_._", + "ref/netcoreapp2.1/Microsoft.CSharp.dll", + "ref/netcoreapp2.1/Microsoft.CSharp.xml", + "ref/netcoreapp2.1/Microsoft.VisualBasic.dll", + "ref/netcoreapp2.1/Microsoft.VisualBasic.xml", + "ref/netcoreapp2.1/Microsoft.Win32.Primitives.dll", + "ref/netcoreapp2.1/Microsoft.Win32.Primitives.xml", + "ref/netcoreapp2.1/System.AppContext.dll", + "ref/netcoreapp2.1/System.Buffers.dll", + "ref/netcoreapp2.1/System.Buffers.xml", + "ref/netcoreapp2.1/System.Collections.Concurrent.dll", + "ref/netcoreapp2.1/System.Collections.Concurrent.xml", + "ref/netcoreapp2.1/System.Collections.Immutable.dll", + "ref/netcoreapp2.1/System.Collections.Immutable.xml", + "ref/netcoreapp2.1/System.Collections.NonGeneric.dll", + "ref/netcoreapp2.1/System.Collections.NonGeneric.xml", + "ref/netcoreapp2.1/System.Collections.Specialized.dll", + "ref/netcoreapp2.1/System.Collections.Specialized.xml", + "ref/netcoreapp2.1/System.Collections.dll", + "ref/netcoreapp2.1/System.Collections.xml", + "ref/netcoreapp2.1/System.ComponentModel.Annotations.dll", + "ref/netcoreapp2.1/System.ComponentModel.Annotations.xml", + "ref/netcoreapp2.1/System.ComponentModel.DataAnnotations.dll", + "ref/netcoreapp2.1/System.ComponentModel.EventBasedAsync.dll", + "ref/netcoreapp2.1/System.ComponentModel.EventBasedAsync.xml", + "ref/netcoreapp2.1/System.ComponentModel.Primitives.dll", + "ref/netcoreapp2.1/System.ComponentModel.Primitives.xml", + "ref/netcoreapp2.1/System.ComponentModel.TypeConverter.dll", + "ref/netcoreapp2.1/System.ComponentModel.TypeConverter.xml", + "ref/netcoreapp2.1/System.ComponentModel.dll", + "ref/netcoreapp2.1/System.ComponentModel.xml", + "ref/netcoreapp2.1/System.Configuration.dll", + "ref/netcoreapp2.1/System.Console.dll", + "ref/netcoreapp2.1/System.Console.xml", + "ref/netcoreapp2.1/System.Core.dll", + "ref/netcoreapp2.1/System.Data.Common.dll", + "ref/netcoreapp2.1/System.Data.Common.xml", + "ref/netcoreapp2.1/System.Data.dll", + "ref/netcoreapp2.1/System.Diagnostics.Contracts.dll", + "ref/netcoreapp2.1/System.Diagnostics.Contracts.xml", + "ref/netcoreapp2.1/System.Diagnostics.Debug.dll", + "ref/netcoreapp2.1/System.Diagnostics.Debug.xml", + "ref/netcoreapp2.1/System.Diagnostics.DiagnosticSource.dll", + "ref/netcoreapp2.1/System.Diagnostics.DiagnosticSource.xml", + "ref/netcoreapp2.1/System.Diagnostics.FileVersionInfo.dll", + "ref/netcoreapp2.1/System.Diagnostics.FileVersionInfo.xml", + "ref/netcoreapp2.1/System.Diagnostics.Process.dll", + "ref/netcoreapp2.1/System.Diagnostics.Process.xml", + "ref/netcoreapp2.1/System.Diagnostics.StackTrace.dll", + "ref/netcoreapp2.1/System.Diagnostics.StackTrace.xml", + "ref/netcoreapp2.1/System.Diagnostics.TextWriterTraceListener.dll", + "ref/netcoreapp2.1/System.Diagnostics.TextWriterTraceListener.xml", + "ref/netcoreapp2.1/System.Diagnostics.Tools.dll", + "ref/netcoreapp2.1/System.Diagnostics.Tools.xml", + "ref/netcoreapp2.1/System.Diagnostics.TraceSource.dll", + "ref/netcoreapp2.1/System.Diagnostics.TraceSource.xml", + "ref/netcoreapp2.1/System.Diagnostics.Tracing.dll", + "ref/netcoreapp2.1/System.Diagnostics.Tracing.xml", + "ref/netcoreapp2.1/System.Drawing.Primitives.dll", + "ref/netcoreapp2.1/System.Drawing.Primitives.xml", + "ref/netcoreapp2.1/System.Drawing.dll", + "ref/netcoreapp2.1/System.Dynamic.Runtime.dll", + "ref/netcoreapp2.1/System.Globalization.Calendars.dll", + "ref/netcoreapp2.1/System.Globalization.Extensions.dll", + "ref/netcoreapp2.1/System.Globalization.dll", + "ref/netcoreapp2.1/System.IO.Compression.Brotli.dll", + "ref/netcoreapp2.1/System.IO.Compression.FileSystem.dll", + "ref/netcoreapp2.1/System.IO.Compression.ZipFile.dll", + "ref/netcoreapp2.1/System.IO.Compression.ZipFile.xml", + "ref/netcoreapp2.1/System.IO.Compression.dll", + "ref/netcoreapp2.1/System.IO.Compression.xml", + "ref/netcoreapp2.1/System.IO.FileSystem.DriveInfo.dll", + "ref/netcoreapp2.1/System.IO.FileSystem.DriveInfo.xml", + "ref/netcoreapp2.1/System.IO.FileSystem.Primitives.dll", + "ref/netcoreapp2.1/System.IO.FileSystem.Watcher.dll", + "ref/netcoreapp2.1/System.IO.FileSystem.Watcher.xml", + "ref/netcoreapp2.1/System.IO.FileSystem.dll", + "ref/netcoreapp2.1/System.IO.FileSystem.xml", + "ref/netcoreapp2.1/System.IO.IsolatedStorage.dll", + "ref/netcoreapp2.1/System.IO.IsolatedStorage.xml", + "ref/netcoreapp2.1/System.IO.MemoryMappedFiles.dll", + "ref/netcoreapp2.1/System.IO.MemoryMappedFiles.xml", + "ref/netcoreapp2.1/System.IO.Pipes.dll", + "ref/netcoreapp2.1/System.IO.Pipes.xml", + "ref/netcoreapp2.1/System.IO.UnmanagedMemoryStream.dll", + "ref/netcoreapp2.1/System.IO.dll", + "ref/netcoreapp2.1/System.Linq.Expressions.dll", + "ref/netcoreapp2.1/System.Linq.Expressions.xml", + "ref/netcoreapp2.1/System.Linq.Parallel.dll", + "ref/netcoreapp2.1/System.Linq.Parallel.xml", + "ref/netcoreapp2.1/System.Linq.Queryable.dll", + "ref/netcoreapp2.1/System.Linq.Queryable.xml", + "ref/netcoreapp2.1/System.Linq.dll", + "ref/netcoreapp2.1/System.Linq.xml", + "ref/netcoreapp2.1/System.Memory.dll", + "ref/netcoreapp2.1/System.Memory.xml", + "ref/netcoreapp2.1/System.Net.Http.dll", + "ref/netcoreapp2.1/System.Net.Http.xml", + "ref/netcoreapp2.1/System.Net.HttpListener.dll", + "ref/netcoreapp2.1/System.Net.HttpListener.xml", + "ref/netcoreapp2.1/System.Net.Mail.dll", + "ref/netcoreapp2.1/System.Net.Mail.xml", + "ref/netcoreapp2.1/System.Net.NameResolution.dll", + "ref/netcoreapp2.1/System.Net.NameResolution.xml", + "ref/netcoreapp2.1/System.Net.NetworkInformation.dll", + "ref/netcoreapp2.1/System.Net.NetworkInformation.xml", + "ref/netcoreapp2.1/System.Net.Ping.dll", + "ref/netcoreapp2.1/System.Net.Ping.xml", + "ref/netcoreapp2.1/System.Net.Primitives.dll", + "ref/netcoreapp2.1/System.Net.Primitives.xml", + "ref/netcoreapp2.1/System.Net.Requests.dll", + "ref/netcoreapp2.1/System.Net.Requests.xml", + "ref/netcoreapp2.1/System.Net.Security.dll", + "ref/netcoreapp2.1/System.Net.Security.xml", + "ref/netcoreapp2.1/System.Net.ServicePoint.dll", + "ref/netcoreapp2.1/System.Net.ServicePoint.xml", + "ref/netcoreapp2.1/System.Net.Sockets.dll", + "ref/netcoreapp2.1/System.Net.Sockets.xml", + "ref/netcoreapp2.1/System.Net.WebClient.dll", + "ref/netcoreapp2.1/System.Net.WebClient.xml", + "ref/netcoreapp2.1/System.Net.WebHeaderCollection.dll", + "ref/netcoreapp2.1/System.Net.WebHeaderCollection.xml", + "ref/netcoreapp2.1/System.Net.WebProxy.dll", + "ref/netcoreapp2.1/System.Net.WebProxy.xml", + "ref/netcoreapp2.1/System.Net.WebSockets.Client.dll", + "ref/netcoreapp2.1/System.Net.WebSockets.Client.xml", + "ref/netcoreapp2.1/System.Net.WebSockets.dll", + "ref/netcoreapp2.1/System.Net.WebSockets.xml", + "ref/netcoreapp2.1/System.Net.dll", + "ref/netcoreapp2.1/System.Numerics.Vectors.dll", + "ref/netcoreapp2.1/System.Numerics.Vectors.xml", + "ref/netcoreapp2.1/System.Numerics.dll", + "ref/netcoreapp2.1/System.ObjectModel.dll", + "ref/netcoreapp2.1/System.ObjectModel.xml", + "ref/netcoreapp2.1/System.Reflection.DispatchProxy.dll", + "ref/netcoreapp2.1/System.Reflection.DispatchProxy.xml", + "ref/netcoreapp2.1/System.Reflection.Emit.ILGeneration.dll", + "ref/netcoreapp2.1/System.Reflection.Emit.ILGeneration.xml", + "ref/netcoreapp2.1/System.Reflection.Emit.Lightweight.dll", + "ref/netcoreapp2.1/System.Reflection.Emit.Lightweight.xml", + "ref/netcoreapp2.1/System.Reflection.Emit.dll", + "ref/netcoreapp2.1/System.Reflection.Emit.xml", + "ref/netcoreapp2.1/System.Reflection.Extensions.dll", + "ref/netcoreapp2.1/System.Reflection.Metadata.dll", + "ref/netcoreapp2.1/System.Reflection.Metadata.xml", + "ref/netcoreapp2.1/System.Reflection.Primitives.dll", + "ref/netcoreapp2.1/System.Reflection.Primitives.xml", + "ref/netcoreapp2.1/System.Reflection.TypeExtensions.dll", + "ref/netcoreapp2.1/System.Reflection.TypeExtensions.xml", + "ref/netcoreapp2.1/System.Reflection.dll", + "ref/netcoreapp2.1/System.Resources.Reader.dll", + "ref/netcoreapp2.1/System.Resources.ResourceManager.dll", + "ref/netcoreapp2.1/System.Resources.ResourceManager.xml", + "ref/netcoreapp2.1/System.Resources.Writer.dll", + "ref/netcoreapp2.1/System.Resources.Writer.xml", + "ref/netcoreapp2.1/System.Runtime.CompilerServices.VisualC.dll", + "ref/netcoreapp2.1/System.Runtime.CompilerServices.VisualC.xml", + "ref/netcoreapp2.1/System.Runtime.Extensions.dll", + "ref/netcoreapp2.1/System.Runtime.Extensions.xml", + "ref/netcoreapp2.1/System.Runtime.Handles.dll", + "ref/netcoreapp2.1/System.Runtime.InteropServices.RuntimeInformation.dll", + "ref/netcoreapp2.1/System.Runtime.InteropServices.RuntimeInformation.xml", + "ref/netcoreapp2.1/System.Runtime.InteropServices.WindowsRuntime.dll", + "ref/netcoreapp2.1/System.Runtime.InteropServices.WindowsRuntime.xml", + "ref/netcoreapp2.1/System.Runtime.InteropServices.dll", + "ref/netcoreapp2.1/System.Runtime.InteropServices.xml", + "ref/netcoreapp2.1/System.Runtime.Loader.dll", + "ref/netcoreapp2.1/System.Runtime.Loader.xml", + "ref/netcoreapp2.1/System.Runtime.Numerics.dll", + "ref/netcoreapp2.1/System.Runtime.Numerics.xml", + "ref/netcoreapp2.1/System.Runtime.Serialization.Formatters.dll", + "ref/netcoreapp2.1/System.Runtime.Serialization.Formatters.xml", + "ref/netcoreapp2.1/System.Runtime.Serialization.Json.dll", + "ref/netcoreapp2.1/System.Runtime.Serialization.Json.xml", + "ref/netcoreapp2.1/System.Runtime.Serialization.Primitives.dll", + "ref/netcoreapp2.1/System.Runtime.Serialization.Primitives.xml", + "ref/netcoreapp2.1/System.Runtime.Serialization.Xml.dll", + "ref/netcoreapp2.1/System.Runtime.Serialization.Xml.xml", + "ref/netcoreapp2.1/System.Runtime.Serialization.dll", + "ref/netcoreapp2.1/System.Runtime.dll", + "ref/netcoreapp2.1/System.Runtime.xml", + "ref/netcoreapp2.1/System.Security.Claims.dll", + "ref/netcoreapp2.1/System.Security.Claims.xml", + "ref/netcoreapp2.1/System.Security.Cryptography.Algorithms.dll", + "ref/netcoreapp2.1/System.Security.Cryptography.Algorithms.xml", + "ref/netcoreapp2.1/System.Security.Cryptography.Csp.dll", + "ref/netcoreapp2.1/System.Security.Cryptography.Csp.xml", + "ref/netcoreapp2.1/System.Security.Cryptography.Encoding.dll", + "ref/netcoreapp2.1/System.Security.Cryptography.Encoding.xml", + "ref/netcoreapp2.1/System.Security.Cryptography.Primitives.dll", + "ref/netcoreapp2.1/System.Security.Cryptography.Primitives.xml", + "ref/netcoreapp2.1/System.Security.Cryptography.X509Certificates.dll", + "ref/netcoreapp2.1/System.Security.Cryptography.X509Certificates.xml", + "ref/netcoreapp2.1/System.Security.Principal.dll", + "ref/netcoreapp2.1/System.Security.Principal.xml", + "ref/netcoreapp2.1/System.Security.SecureString.dll", + "ref/netcoreapp2.1/System.Security.dll", + "ref/netcoreapp2.1/System.ServiceModel.Web.dll", + "ref/netcoreapp2.1/System.ServiceProcess.dll", + "ref/netcoreapp2.1/System.Text.Encoding.Extensions.dll", + "ref/netcoreapp2.1/System.Text.Encoding.Extensions.xml", + "ref/netcoreapp2.1/System.Text.Encoding.dll", + "ref/netcoreapp2.1/System.Text.RegularExpressions.dll", + "ref/netcoreapp2.1/System.Text.RegularExpressions.xml", + "ref/netcoreapp2.1/System.Threading.Overlapped.dll", + "ref/netcoreapp2.1/System.Threading.Overlapped.xml", + "ref/netcoreapp2.1/System.Threading.Tasks.Dataflow.dll", + "ref/netcoreapp2.1/System.Threading.Tasks.Dataflow.xml", + "ref/netcoreapp2.1/System.Threading.Tasks.Extensions.dll", + "ref/netcoreapp2.1/System.Threading.Tasks.Extensions.xml", + "ref/netcoreapp2.1/System.Threading.Tasks.Parallel.dll", + "ref/netcoreapp2.1/System.Threading.Tasks.Parallel.xml", + "ref/netcoreapp2.1/System.Threading.Tasks.dll", + "ref/netcoreapp2.1/System.Threading.Tasks.xml", + "ref/netcoreapp2.1/System.Threading.Thread.dll", + "ref/netcoreapp2.1/System.Threading.Thread.xml", + "ref/netcoreapp2.1/System.Threading.ThreadPool.dll", + "ref/netcoreapp2.1/System.Threading.ThreadPool.xml", + "ref/netcoreapp2.1/System.Threading.Timer.dll", + "ref/netcoreapp2.1/System.Threading.Timer.xml", + "ref/netcoreapp2.1/System.Threading.dll", + "ref/netcoreapp2.1/System.Threading.xml", + "ref/netcoreapp2.1/System.Transactions.Local.dll", + "ref/netcoreapp2.1/System.Transactions.Local.xml", + "ref/netcoreapp2.1/System.Transactions.dll", + "ref/netcoreapp2.1/System.ValueTuple.dll", + "ref/netcoreapp2.1/System.Web.HttpUtility.dll", + "ref/netcoreapp2.1/System.Web.HttpUtility.xml", + "ref/netcoreapp2.1/System.Web.dll", + "ref/netcoreapp2.1/System.Windows.dll", + "ref/netcoreapp2.1/System.Xml.Linq.dll", + "ref/netcoreapp2.1/System.Xml.ReaderWriter.dll", + "ref/netcoreapp2.1/System.Xml.ReaderWriter.xml", + "ref/netcoreapp2.1/System.Xml.Serialization.dll", + "ref/netcoreapp2.1/System.Xml.XDocument.dll", + "ref/netcoreapp2.1/System.Xml.XDocument.xml", + "ref/netcoreapp2.1/System.Xml.XPath.XDocument.dll", + "ref/netcoreapp2.1/System.Xml.XPath.XDocument.xml", + "ref/netcoreapp2.1/System.Xml.XPath.dll", + "ref/netcoreapp2.1/System.Xml.XPath.xml", + "ref/netcoreapp2.1/System.Xml.XmlDocument.dll", + "ref/netcoreapp2.1/System.Xml.XmlSerializer.dll", + "ref/netcoreapp2.1/System.Xml.XmlSerializer.xml", + "ref/netcoreapp2.1/System.Xml.dll", + "ref/netcoreapp2.1/System.dll", + "ref/netcoreapp2.1/WindowsBase.dll", + "ref/netcoreapp2.1/mscorlib.dll", + "ref/netcoreapp2.1/netstandard.dll", + "runtime.json" + ] + }, + "Microsoft.NETCore.DotNetAppHost/2.1.0": { + "sha512": "vMn8V3GOp/SPOG2oE8WxswzAWZ/GZmc8EPiB3vc2EZ6us14ehXhsvUFXndYopGNSjCa9OdqC6L6xStF1KyUZnw==", + "type": "package", + "path": "microsoft.netcore.dotnetapphost/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "microsoft.netcore.dotnetapphost.2.1.0.nupkg.sha512", + "microsoft.netcore.dotnetapphost.nuspec", + "runtime.json" + ] + }, + "Microsoft.NETCore.DotNetHostPolicy/2.1.0": { + "sha512": "vBUwNihtLUVS2HhO6WocYfAktRmfFihm6JB8/sJ53caVW+AelvbnYpfiGzaZDpkWjN6vA3xzOKPu9Vu8Zz3p8Q==", + "type": "package", + "path": "microsoft.netcore.dotnethostpolicy/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "microsoft.netcore.dotnethostpolicy.2.1.0.nupkg.sha512", + "microsoft.netcore.dotnethostpolicy.nuspec", + "runtime.json" + ] + }, + "Microsoft.NETCore.DotNetHostResolver/2.1.0": { + "sha512": "o0PRql5qOHFEY3d1WvzE+T7cMFKtOsWLMg8L1oTeGNnI4u5AzOj8o6AdZT3y2GxFA1DAx7AQ9qZjpCO2/bgZRw==", + "type": "package", + "path": "microsoft.netcore.dotnethostresolver/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "microsoft.netcore.dotnethostresolver.2.1.0.nupkg.sha512", + "microsoft.netcore.dotnethostresolver.nuspec", + "runtime.json" + ] + }, + "Microsoft.NETCore.Platforms/2.1.0": { + "sha512": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA==", + "type": "package", + "path": "microsoft.netcore.platforms/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/netstandard1.0/_._", + "microsoft.netcore.platforms.2.1.0.nupkg.sha512", + "microsoft.netcore.platforms.nuspec", + "runtime.json", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "Microsoft.NETCore.Targets/2.1.0": { + "sha512": "x188gIZXOwFXkPXyGavEcPGcR6RGvjFOES2QzskN4gERZjWPN34qhRsZVMC0CLJfQLGSButarcgWxPPM4vmg0w==", + "type": "package", + "path": "microsoft.netcore.targets/2.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/netstandard1.0/_._", + "microsoft.netcore.targets.2.1.0.nupkg.sha512", + "microsoft.netcore.targets.nuspec", + "runtime.json", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "NETStandard.Library/2.0.3": { + "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", + "type": "package", + "path": "netstandard.library/2.0.3", + "files": [ + ".nupkg.metadata", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "build/netstandard2.0/NETStandard.Library.targets", + "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", + "build/netstandard2.0/ref/System.AppContext.dll", + "build/netstandard2.0/ref/System.Collections.Concurrent.dll", + "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", + "build/netstandard2.0/ref/System.Collections.Specialized.dll", + "build/netstandard2.0/ref/System.Collections.dll", + "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", + "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", + "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", + "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", + "build/netstandard2.0/ref/System.ComponentModel.dll", + "build/netstandard2.0/ref/System.Console.dll", + "build/netstandard2.0/ref/System.Core.dll", + "build/netstandard2.0/ref/System.Data.Common.dll", + "build/netstandard2.0/ref/System.Data.dll", + "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", + "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", + "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", + "build/netstandard2.0/ref/System.Diagnostics.Process.dll", + "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", + "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", + "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", + "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", + "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", + "build/netstandard2.0/ref/System.Drawing.Primitives.dll", + "build/netstandard2.0/ref/System.Drawing.dll", + "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", + "build/netstandard2.0/ref/System.Globalization.Calendars.dll", + "build/netstandard2.0/ref/System.Globalization.Extensions.dll", + "build/netstandard2.0/ref/System.Globalization.dll", + "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", + "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", + "build/netstandard2.0/ref/System.IO.Compression.dll", + "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", + "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", + "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", + "build/netstandard2.0/ref/System.IO.FileSystem.dll", + "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", + "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", + "build/netstandard2.0/ref/System.IO.Pipes.dll", + "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", + "build/netstandard2.0/ref/System.IO.dll", + "build/netstandard2.0/ref/System.Linq.Expressions.dll", + "build/netstandard2.0/ref/System.Linq.Parallel.dll", + "build/netstandard2.0/ref/System.Linq.Queryable.dll", + "build/netstandard2.0/ref/System.Linq.dll", + "build/netstandard2.0/ref/System.Net.Http.dll", + "build/netstandard2.0/ref/System.Net.NameResolution.dll", + "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", + "build/netstandard2.0/ref/System.Net.Ping.dll", + "build/netstandard2.0/ref/System.Net.Primitives.dll", + "build/netstandard2.0/ref/System.Net.Requests.dll", + "build/netstandard2.0/ref/System.Net.Security.dll", + "build/netstandard2.0/ref/System.Net.Sockets.dll", + "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", + "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", + "build/netstandard2.0/ref/System.Net.WebSockets.dll", + "build/netstandard2.0/ref/System.Net.dll", + "build/netstandard2.0/ref/System.Numerics.dll", + "build/netstandard2.0/ref/System.ObjectModel.dll", + "build/netstandard2.0/ref/System.Reflection.Extensions.dll", + "build/netstandard2.0/ref/System.Reflection.Primitives.dll", + "build/netstandard2.0/ref/System.Reflection.dll", + "build/netstandard2.0/ref/System.Resources.Reader.dll", + "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", + "build/netstandard2.0/ref/System.Resources.Writer.dll", + "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", + "build/netstandard2.0/ref/System.Runtime.Extensions.dll", + "build/netstandard2.0/ref/System.Runtime.Handles.dll", + "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", + "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", + "build/netstandard2.0/ref/System.Runtime.Numerics.dll", + "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", + "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", + "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", + "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", + "build/netstandard2.0/ref/System.Runtime.Serialization.dll", + "build/netstandard2.0/ref/System.Runtime.dll", + "build/netstandard2.0/ref/System.Security.Claims.dll", + "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", + "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", + "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", + "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", + "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", + "build/netstandard2.0/ref/System.Security.Principal.dll", + "build/netstandard2.0/ref/System.Security.SecureString.dll", + "build/netstandard2.0/ref/System.ServiceModel.Web.dll", + "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", + "build/netstandard2.0/ref/System.Text.Encoding.dll", + "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", + "build/netstandard2.0/ref/System.Threading.Overlapped.dll", + "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", + "build/netstandard2.0/ref/System.Threading.Tasks.dll", + "build/netstandard2.0/ref/System.Threading.Thread.dll", + "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", + "build/netstandard2.0/ref/System.Threading.Timer.dll", + "build/netstandard2.0/ref/System.Threading.dll", + "build/netstandard2.0/ref/System.Transactions.dll", + "build/netstandard2.0/ref/System.ValueTuple.dll", + "build/netstandard2.0/ref/System.Web.dll", + "build/netstandard2.0/ref/System.Windows.dll", + "build/netstandard2.0/ref/System.Xml.Linq.dll", + "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", + "build/netstandard2.0/ref/System.Xml.Serialization.dll", + "build/netstandard2.0/ref/System.Xml.XDocument.dll", + "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", + "build/netstandard2.0/ref/System.Xml.XPath.dll", + "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", + "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", + "build/netstandard2.0/ref/System.Xml.dll", + "build/netstandard2.0/ref/System.dll", + "build/netstandard2.0/ref/mscorlib.dll", + "build/netstandard2.0/ref/netstandard.dll", + "build/netstandard2.0/ref/netstandard.xml", + "lib/netstandard1.0/_._", + "netstandard.library.2.0.3.nupkg.sha512", + "netstandard.library.nuspec" + ] + } + }, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v2.1": [ + "Microsoft.NETCore.App >= 2.1.0" + ] + }, + "packageFolders": { + "C:\\Users\\Jack\\.nuget\\packages\\": {}, + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj", + "projectName": "csharp_dll_demo", + "projectPath": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\csharp_dll_demo.csproj", + "packagesPath": "C:\\Users\\Jack\\.nuget\\packages\\", + "outputPath": "G:\\dev_libs\\ademco_hb\\csharp_dll_demo\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], + "configFilePaths": [ + "C:\\Users\\Jack\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp2.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp2.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp2.1": { + "dependencies": { + "Microsoft.NETCore.App": { + "target": "Package", + "version": "[2.1.0, )", + "autoReferenced": true + } + }, + "imports": [ + "net461" + ], + "assetTargetFallback": true, + "warn": true + } + } + } +} \ No newline at end of file diff --git a/dll_demo/dll_demo.cpp b/dll_demo/dll_demo.cpp index f5e4e35a0efe978ff69049c559ed9fcf7b4c2c81..dd8de0cb4762c7a5cdb9f02ff8ba5d11350e40ce 100644 --- a/dll_demo/dll_demo.cpp +++ b/dll_demo/dll_demo.cpp @@ -11,23 +11,23 @@ int main() { - size_t cb_commited = 0; + int cb_commited = 0; { char raw[] = "\nC5C30053\"HENG-BO\"0000R000000L000000#90219125916578[#000000|1737 00 000]_09:11:19,08-05-2019\r"; - int res = parse(raw, strlen(raw), cb_commited); + int res = parse(raw, strlen(raw), &cb_commited); assert(res == 0); } { char raw_not_enough[] = "\nC5C30053\"HENG-BO\"0000R000000L000000"; - int res = parse(raw_not_enough, strlen(raw_not_enough), cb_commited); + int res = parse(raw_not_enough, strlen(raw_not_enough), &cb_commited); assert(res == 1); } { char raw_error[] = "abcdeadfasdfasdfasd"; - int res = parse(raw_error, strlen(raw_error), cb_commited); + int res = parse(raw_error, strlen(raw_error), &cb_commited); assert(res == 2); } }