Http://personball.com/powershell/2016/07/15/powershell-tips
Customize your own PowerShell, reduce repetitive work install a series of your own common NuGet package items long, sometimes find yourself new projects, always spend half a day or dozens of minutes to create a new project, one by one to install all the usual packages. For yards of farming, this repetition of labor is not tolerated! Open the NuGet Package Management Console, enter the code $profile, and in the open file, enter the following script function Install-packageforabpunittest{Install-package abp.testbase-version0.9.1.0Install-package abp.entityframework-version0.9.1.0Install-Package Nsubstitute Install-Package shouldly Install-Package Xunit.runner.visualstudio Install-Package Xunit Install-Package Effort.ef6} #可能需要重启下nuget包管理器控制台, or the role of restarting vs this script is obvious (can ignore the ABP framework I'm using), how to use it? 1Open the SLN to create a new class library project in the current solution (Xunit as long as it is a class library project)2Open the NuGet Package Manager console and select the newly created class library project3. In the NuGet Package Manager console, enter Install tab and select ' install-packageforabpunittest '4. Then just wait for all the packages to be installed and finished.
Description of PowerShell script under the NuGet Package Manager console