Can anyone please explain me the detailed steps to include in a PowerShell script for installing selected DLLs from a package into a VS project, based on the References in a project (say from the .csproj file)?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- How to Debug/Register a Permanent WMI Event Which
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- dotnet restore还原nuget包时无法加载 https://api.nuget.org/
- C#调用PowerShell的问题
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- EscapeDataString having differing behaviour betwee
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
As we know, there is a PowerShell script
install.ps1
that can be included in the package, which is by convention named and located in tools folder.Download a NuGet package, for example, Newtonsoft.Json.10.0.3. Open the install.ps1 file in the package with notepad, the scripts should begin with the following line:
See Running PowerShell scripts during NuGet package installation and removal for more detail.
Then after above scripts, you can find the below scripts, which used to install the dll from a package into a VS project:
Note:
Install.ps
will only be invoked if there is something in the\lib
or\content
folder, not for a "tools only" package.