ImportDependency
0.3.9
Apteco PS Modules - PowerShell import dependencies
Module to import dependencies from the PowerShell Gallery and NuGet.
Please make sure to have the Modules WriteLog and PowerShellGet (>= 2.2.4) installed.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2025 Apteco GmbH. All rights reserved.
Package Details
Author(s)
- florian.von.bracht@apteco.de
Tags
powershell Windows Linux Apteco
Functions
Import-Dependency Get-PSEnvironment Get-TemporaryPath Get-PythonPath Get-PwshPath
PSEditions
Dependencies
Release Notes
0.3.9 Fix for vcredist, when there is only one version installed
0.3.8 Added more default information about PSCore, if installed (but also when not currently used)
      Fixed getting pwsh path on Windows and Linux
      Fixed loading of module and script path
0.3.7 Returning absolute logfile path rather than a relative one
0.3.6 Adding a function Get-TemporaryPath to get a temporary path on Windows and Linux
      Adding two functions to get pwsh and python path
0.3.5 Adding Linux functionality for current executing user and if it is sudo/elevated
0.3.4 Added more switches to get faster execution of Get-PSEnvironment
      Added a synopsys to Get-PSEnvironment
      Changed the approach to load the versions of PowerShellGet and PackageManagement
      Loading the OS directly at the start of module import to determine if PATH needs to be extended
0.3.3 Fixed a problem when VCRedist is not installed at all
0.3.2 Added functionality to load global and local packages into Get-PSEnvironment
0.3.1 Added check of vcredist, powershellget and packagemanagement version
0.3.0 Re-publication as module rather than a script
      Support for PowerShell Core for Windows and Linux, possibly MacOS
      Support for Windows ARM64 architecture
      Added function Get-PSEnvironment to get information about the current PowerShell environment
0.2.0 Added support for loading runtimes with Windows ARM64 architecture
0.1.4 Removed to not load WriteLog module as it is already required here
      Changed Get-LogfileOverride to new parameter KeepLogfile as WriteLog is loaded
        in this script and Get-LogfileOverride will always be the default value
0.1.3 Change the last message to VERBOSE instead of INFO
0.1.2 Fixed temporary module and script path loading
0.1.1 Improved the missing module load
0.1.0 Improving documentation, adding PATH variables, missing modules will not throw an error anymore
0.0.8 Added a parameter switch to suppress warnings to host
0.0.7 Added a note in the log that a runtime was only possibly loaded
0.0.6 Checking 64bit of OS and process
      Output last error when using Kernel32
      Adding runtime errors to log instead of console
0.0.5 Make sure Get-Package is from PackageManagement and NOT VS
0.0.4 Make sure to reuse a log, if already set
0.0.3 Minor Improvements
      Status information at the end
      Differentiation between .net core and windows/desktop priorities
0.0.2 Fixed a problem with out commented input parameters
0.0.1 Initial release of this script
FileList
- ImportDependency.nuspec
- Public\Get-PythonPath.ps1
- Private\Get-BestReferencePath.ps1
- Private\Update-BackgroundJob.ps1
- Public\Get-TemporaryPath.ps1
- ImportDependency.psd1
- Private\Get-BestRuntimePath.ps1
- Public\Get-PSEnvironment.ps1
- Public\Import-Dependency.ps1
- ImportDependency.psm1
- Private\Get-CurrentRuntimeId.ps1
- Public\Get-PwshPath.ps1
- Private\Get-BestFrameworkPath.ps1