PoshCode / ModuleBuilder

A PowerShell Module to help scripters write, version, sign, package, and publish.
MIT License
445 stars 54 forks source link

Question about Modules with .Net Assemblies #72

Closed mattmcnabb closed 5 years ago

mattmcnabb commented 5 years ago

Is there any support or guidance for modules with dependent .Net assemblies? For instance, I have a module with a .Net Core project and PowerShell module content, and these need to be compiled together.

Alternatively, would it be better to have a dotnet build step prior to invoking Build-Module?

Thanks!

Jaykul commented 5 years ago

What I'm doing is dotnet build -c Release before a Build-Module step, and in the build.psd1 I use CopyDirectories to move the dll into the output.

See this branch as an example, specifically, the build.ps1 or the azure-pipelines.yaml and the build.psd1

mattmcnabb commented 5 years ago

Got it, thanks!