使用自定义PMC命令创建Nuget软件包

发布于 2025-02-05 06:47:59 字数 108 浏览 2 评论 0 原文

我想知道如何开发一个工具集,然后可以使用软件包管理器命令来修改项目(分析或生成代码)。

像Microsoft.entityframeworkcore.tools一样,添加/删除迁移等命令。

I was wondering how can I get to develop a toolset that I can then run using package manager console commands to modify my project (analyze or generate code).

Someting like Microsoft.EntityFrameworkCore.Tools that adds add/remove-migration etc. commands.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无敌元气妹 2025-02-12 06:48:04

我们可以从此链接中看到所有命令都可以在软件包manger控制台中与Nuget进行交互。不幸的是,没有命令可以创建一个Nuget软件包。

您可以在PMC中尝试此命令“ dotnet pack”,它可以在我的测试中有效地创建了Nuget软件包。

We can see all commands to interact with NuGet in Package Manger Console from this link. Unfortunately, there is no command to create a nuget package.
( https://learn.microsoft.com/en-us/nuget/reference/powershell-reference )

You can try this command “dotnet pack” in PMC, it effectively created the nuget package in my test.
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文