Subatomix.Build.Packaging.PowerShellModule
2.0.0-pre01
dotnet add package Subatomix.Build.Packaging.PowerShellModule --version 2.0.0-pre01
NuGet\Install-Package Subatomix.Build.Packaging.PowerShellModule -Version 2.0.0-pre01
<PackageReference Include="Subatomix.Build.Packaging.PowerShellModule" Version="2.0.0-pre01"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Subatomix.Build.Packaging.PowerShellModule" Version="2.0.0-pre01" />
<PackageReference Include="Subatomix.Build.Packaging.PowerShellModule"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Subatomix.Build.Packaging.PowerShellModule --version 2.0.0-pre01
#r "nuget: Subatomix.Build.Packaging.PowerShellModule, 2.0.0-pre01"
#:package Subatomix.Build.Packaging.PowerShellModule@2.0.0-pre01
#addin nuget:?package=Subatomix.Build.Packaging.PowerShellModule&version=2.0.0-pre01&prerelease
#tool nuget:?package=Subatomix.Build.Packaging.PowerShellModule&version=2.0.0-pre01&prerelease
Subatomix.Build.Packaging.PowerShellModule
PowerShell module packaging support for .NET SDK-style projects.
Status
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>
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 |