-
Notifications
You must be signed in to change notification settings - Fork 400
Description
I'm attempting to import PSScriptAnalyzer in my PC that does not have access to the internet.
I tried a few things and I can't seem to get it working.
I attempted to add the PSScriptAnalyzer release folder in a module path and then used
Import-Module PSScriptAnalyzer
Though I get these errors
Add-Type: Could not load file or assembly "location of my Newtonsoft.Json.dll file" or one of its dependencies
From line 22 of the PSScriptAnalyzer.psm1 file
and
Import-Module: Could not load file or assembly "location of my Microsoft.Windows.PowerShell.ScriptAnalyzer.dll file" or one of its dependencies
From line 31 of the PSScriptAnalyzer.psm1 file
I also tried using the git repo folder and running the build.ps1 script, but I get an error about the dotnet executable not being found
Errors are at lines 406 and 572 of the build.psm1 file
How do I import this module offline?