MSBuild.Sdk.PowerShell
0.1.0
<Sdk Name="MSBuild.Sdk.PowerShell" Version="0.1.0" />
MSBuild.Sdk.PowerShell
Simplifies the workflow of creating and bundling binary PowerShell modules. This package provides and MSBuild-centric module creation approach that assists you in the following tasks:
- automatic creation of a module manifest file (.psd1) based on the data provided in your project file (.csproj)
- creating a Nuget package that is ready to be consumed by PowerShellGet
Installation
In the .csproj of your PowerShell project replace the value of the 'Sdk' attribute with 'MSBuild.PowerShell.Sdk' and the specific version:
<Project Sdk="MSBuild.Sdk.PowerShell/0.1.0">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<ModuleId>080462d7-f4bd-4135-aade-6d0d9b609feb</ModuleId>
<Copyright>John Doe</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" PrivateAssets="All" />
</ItemGroup>
</Project>
For more information on how to use custom MSBuild project sdks see the official Microsoft documentation.
General Usage
Providing Package Metadata
Generating a PowerShell Module NuGet Package
Customization
Available MSBuild Properties
GenerateModuleManifest
(default: True): Set this toFalse
if you are providing your own.psd1
file
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- 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 |
---|---|---|
0.1.0 | 297 | 1/3/2024 |