build-utils
0.2.0
dotnet add package build-utils --version 0.2.0
NuGet\Install-Package build-utils -Version 0.2.0
<PackageReference Include="build-utils" Version="0.2.0" />
paket add build-utils --version 0.2.0
#r "nuget: build-utils, 0.2.0"
// Install build-utils as a Cake Addin #addin nuget:?package=build-utils&version=0.2.0 // Install build-utils as a Cake Tool #tool nuget:?package=build-utils&version=0.2.0
Simple repository for various PowerShell scripts
How to consume feed repository
First step is register the feed where the package is published, here is my public MyGet feed location. Be sure to use v2 version of feed, because at the time of this readme PowerShell works with v2 nuget package version
Register-PSRepository -Name MyGet -SourceLocation https://www.myget.org/F/alkampfer/api/v2
Now you can list all modules, you should be able to find this module.
PS C:\somedir> Find-Module -Name build-utils
Version Name Repository Description
------- ---- ---------- -----------
0.1.1 build-utils MyGet Simple utilities to simplify build of .NET project
If everything is done correctly, we can install the module for the current user with this command (this will not require administrative permissions and install module for current user only)
Install-package build-utils -Confirm:$false -Force -Scope CurrentUser -Verbose
Once the package is installed successfully, you can import it and verify all the functions that are available for usage
PS C:\somedir> Import-Module build-utils
PS C:\somedir> Get-Command -module build-utils
CommandType Name Version Source
----------- ---- ------- ------
Function Edit-XmlNodes 0.1.2 build-utils
Function Get-7ZipLocation 0.1.2 build-utils
Function Update-SourceVersion 0.1.2 build-utils
You should be able now to simply use and manage those functions.
How to publish manually
After you aligned version in .nuspec and .psd1 file, just run nuget to create package file. You can run following command in the src directory.
nuget.exe pack .\build-utils.nuspec
This will create a nuget package that can be pushed on a specific feed by this command
nuget.exe push build-utils.0.1.1.nupkg yourapikey -src https://www.myget.org/F/alkampfer/api/v3/index.json
To verify that the module is correct you can check for package correctness with the command
Test-ModuleManifest -Path .\build-utils.psd1
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.