diff --git a/.gitignore b/.gitignore index 533ab53..a24ebf6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,10 @@ obj/ *.userosscache *.sln.docstates +# Exception for Module lib directory +!Module/lib/ +!Module/lib/**/*.dll + # Visual Studio files .vs/ *.nupkg @@ -46,9 +50,10 @@ PSProxmox/[Oo]bj/ *.tar.gz *.tgz -# Module bin folder (except the DLL) +# Module bin folder (except the DLL and Newtonsoft.Json.dll) Module/bin/* !Module/bin/PSProxmox.dll +!Module/bin/Newtonsoft.Json.dll # PowerShell module artifacts *.psm1 diff --git a/Module/PSProxmox.psd1 b/Module/PSProxmox.psd1 index 172a4b2..89bdafe 100644 --- a/Module/PSProxmox.psd1 +++ b/Module/PSProxmox.psd1 @@ -9,7 +9,7 @@ DotNetFrameworkVersion = '4.7.2' CompatiblePSEditions = @('Desktop', 'Core') # Assemblies that must be loaded prior to importing this module - RequiredAssemblies = @('bin\PSProxmox.dll', 'bin\Newtonsoft.Json.dll') + RequiredAssemblies = @('bin\PSProxmox.dll', 'lib\Newtonsoft.Json.dll') # Root module RootModule = 'bin\PSProxmox.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module diff --git a/Module/lib/Newtonsoft.Json.dll b/Module/lib/Newtonsoft.Json.dll new file mode 100644 index 0000000..3af21d5 Binary files /dev/null and b/Module/lib/Newtonsoft.Json.dll differ