NuGet for solutions with multiple projects

前端 未结 6 1046
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  旧时难觅i
    2020-12-02 05:23

    This sweet deal works for me:

    PM> Get-Project -all | where {$_.Name -match "Songhay.Silverlight" -and
        $_.Name -notmatch "ApplicationLoader" -and $_.Name -notmatch ".Xml"}
        | ForEach-Object {Install-Package MvvmLight -project $_.Name}
    

提交回复
热议问题