PowerShell Script Introduction under NuGet Package Manager console

Source: Internet
Author: User
Tags xunit

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.