Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法创建一个你常用的 nuget 包列表,在我的例子中是 Serilog,然后是其他扩展。
有没有一种方法可以一次安装所有包,而不必一个一个地搜索和安装每个包?
一种方法是创建一个新项目,添加依赖项,在本例中为 NuGet 包,然后在 Visual Studio 的项目菜单下选择Export Template,选择Project template并按照提示操作。
Export Template
Project template
命名项目模板时,请给项目模板一个有意义的名称。
完成这些步骤后,模板在添加新项目下可用。
这是 VS2019 下的自定义模板示例,这些模板已固定以方便访问。