max_rez
max_rez
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
which is why i think im running into difficulties
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
this is all for powershell v5
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
I build the project containing Cmdlets which results in a DLL file in the /bin/debug directory. I then open a powershell prompt and run Import-Module <dll name>
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
so basically my module was trying to use two differnt versions of the *Unsafe DLL (not sure why exactly)
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
this got rid of the error message for 4.0.4.1, but then I got an error message saying it couldnt find v6 of the DLL!
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
as a possible clue as to what was happening.. I downloaded the 4.0.4.1 version of that DLL into the build dir and after importing my module in PS, I did Add-Type to manually load the older version of the *Unsafe Dll
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
basically using much older nuget package versions that would not try to use newer versions of that dll
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
and System.Text.Json for instance and using Newtonsoft.Json
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
what I wound up doing was getting rid of all the nuget packages with "v7.0"
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
I gave up trying to make this work though
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
then running the module
22 replies
CC#
Created by max_rez on 3/23/2023 in #help
❔ Powershell Cmdlet with C# Nuget packages. Can't find the Nuget assemblies when I run the module!
um I'm not totally sure how they distribute it. What I am doing is running Import-Module in the output directory (that contains all the DLLs)
22 replies