Subatomix.Build.Packaging.PowerShellModule 2.0.0-pre01

This is a prerelease version of Subatomix.Build.Packaging.PowerShellModule.
dotnet add package Subatomix.Build.Packaging.PowerShellModule --version 2.0.0-pre01
                    
NuGet\Install-Package Subatomix.Build.Packaging.PowerShellModule -Version 2.0.0-pre01
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Subatomix.Build.Packaging.PowerShellModule" Version="2.0.0-pre01">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Subatomix.Build.Packaging.PowerShellModule" Version="2.0.0-pre01" />
                    
Directory.Packages.props
<PackageReference Include="Subatomix.Build.Packaging.PowerShellModule">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Subatomix.Build.Packaging.PowerShellModule --version 2.0.0-pre01
                    
#r "nuget: Subatomix.Build.Packaging.PowerShellModule, 2.0.0-pre01"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Subatomix.Build.Packaging.PowerShellModule@2.0.0-pre01
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Subatomix.Build.Packaging.PowerShellModule&version=2.0.0-pre01&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Subatomix.Build.Packaging.PowerShellModule&version=2.0.0-pre01&prerelease
                    
Install as a Cake Tool

Subatomix.Build.Packaging.PowerShellModule

PowerShell module packaging support for .NET SDK-style projects.

Status

Build NuGet NuGet

In use by a few modules.

Features

  • Support for binary, script, and manifest modules.
  • Module manifest (.psd1) generation from project properties.
  • Custom module manifest generation from templates.
  • Run and debug in Visual Studio or other IDE.
  • Publish to the PowerShell Gallery with dotnet nuget push.

Usage

It's not difficult. Add a couple project references and set some project properties, and dotnet pack (or Visual Studio's Pack feature) will produce a PowerShell module ready for publishing to the PowerShell Gallery.

See the usage guide for full details.

A C# project file targeting PowerShell 7.4 or later might look like this:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Management.Automation"
                      Version="7.4.0" PrivateAssets="All" />
    <PackageReference Include="Subatomix.Build.Packaging.PowerShellModule"
                      Version="2.0.0" PrivateAssets="All" />
  </ItemGroup>

  <PropertyGroup>
    <Description>My PowerShell module.</Description>
    <Authors>My Name</Authors>
    <Copyright>© My Name</Copyright>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <PackageProjectUrl>https://example.com</PackageProjectUrl>
  </PropertyGroup>

  <ItemGroup>
    <CmdletsToExport Include="New-ExampleThing" />
    <CmdletsToExport Include="Get-ExampleThing" />
    <CmdletsToExport Include="Remove-ExampleThing" />
  </ItemGroup>

</Project>
There are no supported framework assets in this package.

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.

Version Downloads Last Updated
2.0.0-pre01 80 1/12/2026
1.2.0 723 12/1/2025
1.2.0-pre0 240 11/24/2025
1.1.1 1,599 5/1/2022
1.1.1-rc02 503 5/1/2022
1.1.1-rc01 499 5/1/2022
1.1.0 854 4/18/2021
1.1.0-rc03 482 4/14/2021
1.1.0-rc02 499 4/6/2021
1.1.0-rc01 529 4/4/2021
1.0.0 838 12/16/2020
1.0.0-pre05 591 12/16/2020
1.0.0-pre04 557 12/10/2020
1.0.0-pre.4 461 12/10/2020
1.0.0-pre.3 575 8/20/2020
1.0.0-pre.2 525 7/27/2020
1.0.0-pre.1 565 6/29/2020