diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5ade086 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/net6.0/jdis_import.dll", + "args": [], + "cwd": "${workspaceFolder}", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..8d4dd36 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/jdis_import.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/jdis_import.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/jdis_import.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/RESTObjects/RESTMeta.cs b/RESTObjects/RESTMeta.cs new file mode 100644 index 0000000..7902b5a --- /dev/null +++ b/RESTObjects/RESTMeta.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace jdis_import.RESTObjects +{ + public class RESTMeta + { + #region Fields + + private int _numResults; + private bool _success = true; + private string _type; + private string _errorMessage; + + #endregion + + #region Properties + public int numResults + { + get { return _numResults; } + set { _numResults = value; } + } + public bool success + { + get { return _success; } + set { _success = value; } + } + public string errorMessage + { + get { return _errorMessage; } + set { _errorMessage = value; } + } + public string type + { + get { return _type; } + set { _type = value; } + } + #endregion + } +} \ No newline at end of file diff --git a/jdis_import.csproj b/jdis_import.csproj index ddb344e..6288b93 100644 --- a/jdis_import.csproj +++ b/jdis_import.csproj @@ -5,4 +5,9 @@ net6.0 + + + + + diff --git a/obj/Debug/net6.0/jdis_import.assets.cache b/obj/Debug/net6.0/jdis_import.assets.cache new file mode 100644 index 0000000..30560f2 Binary files /dev/null and b/obj/Debug/net6.0/jdis_import.assets.cache differ diff --git a/obj/Debug/net6.0/jdis_import.csproj.AssemblyReference.cache b/obj/Debug/net6.0/jdis_import.csproj.AssemblyReference.cache index 763982d..337d661 100644 Binary files a/obj/Debug/net6.0/jdis_import.csproj.AssemblyReference.cache and b/obj/Debug/net6.0/jdis_import.csproj.AssemblyReference.cache differ diff --git a/obj/jdis_import.csproj.nuget.dgspec.json b/obj/jdis_import.csproj.nuget.dgspec.json index 096ae7c..626ee73 100644 --- a/obj/jdis_import.csproj.nuget.dgspec.json +++ b/obj/jdis_import.csproj.nuget.dgspec.json @@ -20,14 +20,14 @@ "/Users/michielcarman/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ - "net5.0" + "net6.0" ], "sources": { "https://api.nuget.org/v3/index.json": {} }, "frameworks": { - "net5.0": { - "targetAlias": "net5.0", + "net6.0": { + "targetAlias": "net6.0", "projectReferences": {} } }, @@ -38,8 +38,18 @@ } }, "frameworks": { - "net5.0": { - "targetAlias": "net5.0", + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.Exchange.WebServices": { + "target": "Package", + "version": "[2.2.0, )" + }, + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + } + }, "imports": [ "net461", "net462", @@ -50,12 +60,6 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.NETCore.App.Host.osx-x64", - "version": "[5.0.16, 5.0.16]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" diff --git a/obj/project.assets.json b/obj/project.assets.json index 89aa209..1b2b0cf 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1,11 +1,83 @@ { "version": 3, "targets": { - "net5.0": {} + "net6.0": { + "Microsoft.Exchange.WebServices/2.2.0": { + "type": "package", + "compile": { + "lib/40/Microsoft.Exchange.WebServices.Auth.dll": {}, + "lib/40/Microsoft.Exchange.WebServices.dll": {} + }, + "runtime": { + "lib/40/Microsoft.Exchange.WebServices.Auth.dll": {}, + "lib/40/Microsoft.Exchange.WebServices.dll": {} + } + }, + "Newtonsoft.Json/13.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/Newtonsoft.Json.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": {} + } + } + } + }, + "libraries": { + "Microsoft.Exchange.WebServices/2.2.0": { + "sha512": "NlkaTD0uWtg9VbiWq0VDWMBPzHFknH3tmstrxt0acrT09LBGqATTjRpsGOODz6tUdX7/dehBinxsf75U5Uw/+A==", + "type": "package", + "path": "microsoft.exchange.webservices/2.2.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "doc/License Terms.rtf", + "doc/README.htm", + "doc/Redist.txt", + "lib/40/Microsoft.Exchange.WebServices.Auth.dll", + "lib/40/Microsoft.Exchange.WebServices.Auth.pdb", + "lib/40/Microsoft.Exchange.WebServices.Auth.xml", + "lib/40/Microsoft.Exchange.WebServices.dll", + "lib/40/Microsoft.Exchange.WebServices.pdb", + "lib/40/Microsoft.Exchange.WebServices.xml", + "microsoft.exchange.webservices.2.2.0.nupkg.sha512", + "microsoft.exchange.webservices.nuspec" + ] + }, + "Newtonsoft.Json/13.0.1": { + "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "type": "package", + "path": "newtonsoft.json/13.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.md", + "lib/net20/Newtonsoft.Json.dll", + "lib/net20/Newtonsoft.Json.xml", + "lib/net35/Newtonsoft.Json.dll", + "lib/net35/Newtonsoft.Json.xml", + "lib/net40/Newtonsoft.Json.dll", + "lib/net40/Newtonsoft.Json.xml", + "lib/net45/Newtonsoft.Json.dll", + "lib/net45/Newtonsoft.Json.xml", + "lib/netstandard1.0/Newtonsoft.Json.dll", + "lib/netstandard1.0/Newtonsoft.Json.xml", + "lib/netstandard1.3/Newtonsoft.Json.dll", + "lib/netstandard1.3/Newtonsoft.Json.xml", + "lib/netstandard2.0/Newtonsoft.Json.dll", + "lib/netstandard2.0/Newtonsoft.Json.xml", + "newtonsoft.json.13.0.1.nupkg.sha512", + "newtonsoft.json.nuspec", + "packageIcon.png" + ] + } }, - "libraries": {}, "projectFileDependencyGroups": { - "net5.0": [] + "net6.0": [ + "Microsoft.Exchange.WebServices >= 2.2.0", + "Newtonsoft.Json >= 13.0.1" + ] }, "packageFolders": { "/Users/michielcarman/.nuget/packages/": {}, @@ -27,14 +99,14 @@ "/Users/michielcarman/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ - "net5.0" + "net6.0" ], "sources": { "https://api.nuget.org/v3/index.json": {} }, "frameworks": { - "net5.0": { - "targetAlias": "net5.0", + "net6.0": { + "targetAlias": "net6.0", "projectReferences": {} } }, @@ -45,8 +117,18 @@ } }, "frameworks": { - "net5.0": { - "targetAlias": "net5.0", + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.Exchange.WebServices": { + "target": "Package", + "version": "[2.2.0, )" + }, + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + } + }, "imports": [ "net461", "net462", @@ -57,12 +139,6 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.NETCore.App.Host.osx-x64", - "version": "[5.0.16, 5.0.16]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" @@ -71,5 +147,17 @@ "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/6.0.202/RuntimeIdentifierGraph.json" } } - } + }, + "logs": [ + { + "code": "NU1701", + "level": "Warning", + "warningLevel": 1, + "message": "Package 'Microsoft.Exchange.WebServices 2.2.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.", + "libraryId": "Microsoft.Exchange.WebServices", + "targetGraphs": [ + "net6.0" + ] + } + ] } \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index d6d4b20..017d432 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,10 +1,22 @@ { "version": 2, - "dgSpecHash": "h3lgLDAk1KQVIoaUG4r7PGaxwDx9LtmTxDkjpga0ZGIVCqk7rJoen6sQBLVGP0yKvcB03/jikMvcs8KXg7/fug==", + "dgSpecHash": "1J+ptJTK5y8TxU71C0NGzZ9v9YVOMKmmB6CVXWHCLqdMwjIu3Lei4TnIGSCPi1sVRQu/kbnmOwJhs6mJficeQQ==", "success": true, "projectFilePath": "/Volumes/New2TBDrive/apps/acumatica/console/jdis_import/jdis_import.csproj", "expectedPackageFiles": [ - "/Users/michielcarman/.nuget/packages/microsoft.netcore.app.host.osx-x64/5.0.16/microsoft.netcore.app.host.osx-x64.5.0.16.nupkg.sha512" + "/Users/michielcarman/.nuget/packages/microsoft.exchange.webservices/2.2.0/microsoft.exchange.webservices.2.2.0.nupkg.sha512", + "/Users/michielcarman/.nuget/packages/newtonsoft.json/13.0.1/newtonsoft.json.13.0.1.nupkg.sha512" ], - "logs": [] + "logs": [ + { + "code": "NU1701", + "level": "Warning", + "warningLevel": 1, + "message": "Package 'Microsoft.Exchange.WebServices 2.2.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.", + "libraryId": "Microsoft.Exchange.WebServices", + "targetGraphs": [ + "net6.0" + ] + } + ] } \ No newline at end of file