admin管理员组文章数量:1310480
If I publish my C# Binary PowerShell module like this, it works.
dotnet publish -c Release
Push-Location ".\Module\bin\Release\net7.0\publish"
Publish-Module -Name .\ImportIcal.psd1 -NuGetApiKey (Get-Secret NuGetApiKey -AsPlainText )
Pop-Location
However, if I try instead
dotnet publish -c Release
Push-Location ".\Module\bin\Release\net7.0"
Publish-Module -Name .\ImportIcal.psd1 -NuGetApiKey (Get-Secret NuGetApiKey -AsPlainText )
Pop-Location
Raises the exception:
Test-ModuleManifest: The specified RequiredAssemblies entry 'Ical.Net.dll' in the module manifest.
Is is logical enough as the dependencies are not restored to the net7.0 directory and only to the publish directory. However, this causes all of my dependencies being zipped into the NuGet package on the PowerShell gallery.
Is it possible possible to install the dependency tree from NuGet rather than include them in the package, it seems a bit wasteful and bloated.
本文标签: nugetPowerShell Binary Module DependenciesStack Overflow
版权声明:本文标题:nuget - PowerShell Binary Module Dependencies - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741824785a2399578.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论