Skip to content

PowerShell/PSResourceGet

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
June 2, 2023 20:42
May 30, 2023 14:19

License Documentation - PowerShellGet PowerShell Gallery - PowerShellGet Minimum Supported PowerShell Version

Important Note

If you were familiar with the PowerShellGet 3.0 project, we renamed the module to be PSResourceGet, for more information please read this blog.

This version of PSResourceGet is currently under development and is not quite complete. As a result, we are currently only accepting PRs for tests. If you would like to open a PR please open an issue first so that necessary discussion can take place. Please open an issue for any feature requests, bug reports, or questions for PSResourceGet. Please note, the repository for PowerShellGet is available at PowerShell/PowerShellGetv2.

Introduction

PSResourceGet is a PowerShell module with commands for discovering, installing, updating and publishing the PowerShell resources like Modules, Scripts, and DSC Resources.

Documentation

Documentation for PSResourceGet is currently under its old name PowerShellGet v3, please Click here to reference the documentation.

Requirements

  • PowerShell 5.0 or higher.

Get PSResourceGet Module

Please use the PowerShell Gallery to get the latest version of the module.

Get PowerShellGet Source

Steps

  • Obtain the source

    git clone https://github.com/PowerShell/PSResourceGet
  • Navigate to the local repository directory

PS C:\> cd c:\Repos\PSResourceGet
PS C:\Repos\PSResourceGet>
  • Build the project
# Build for the net472 framework
PS C:\Repos\PSResourceGet> .\build.ps1 -Clean -Build -BuildConfiguration Debug -BuildFramework net472

# Build for the netstandard2.0 framework
PS C:\Repos\PSResourceGet> .\build.ps1 -Clean -Build -BuildConfiguration Debug -BuildFramework netstandard2.0
  • Publish the module to a local repository
PS C:\Repos\PSResourceGet> .\build.ps1 -Publish
  • Run functional tests
PS C:\Repos\PSResourceGet> Invoke-PSPackageProjectTest -Type Functional
  • Import the module into a new PowerShell session
# If running PowerShell 6+
C:\> Import-Module C:\Repos\PSResourceGet\out\PSResourceGet

# If running Windows PowerShell
C:\> Import-Module C:\Repos\PSResourceGet\out\PSResourceGet\PSResourceGet.psd1