NuGet for solutions with multiple projects

前端 未结 6 1045
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 04:39

Suppose I have a solution with 3 projects:

  • Core
  • UI
  • Tests

Some of the NuGet packages I use will apply to all 3 projects. Some w

6条回答
  •  孤城傲影
    2020-12-02 05:22

    Use the console to target multiple projects

    Tools > Library Package Manager > Package Manager Console
    

    then use this command

    Get-Project PROJECT-NAMES-WITH-COMMAS | Install-Package PACKAGENAME
    

    for example

    Get-Project Core,UI | Install-Package FluentDateTime
    

提交回复
热议问题