Extremely Serious

Month: September 2019

Using Proxy with NodeJS

Execute the following command to set the proxy for HTTP:

npm config set proxy <HOST>:<PORT>

Execute the following command to set the proxy for HTTPS:

npm config set https-proxy <HOST>:<PORT>

Where:

HOST The host that is running the proxy server
PORT The port the proxy server is listening.

Adding NuGet Package Reference to a Project

Add a NuGet package reference to .Net Core project using the following command:

dotnet add package <PACKAGE_NAME> [-v <VERSION>]

Where:

PACKAGE_NAME The NuGet package to be added
VERSION If the optional -v was used, the target VERSION of the NuGet package.

Example without the -v option

dotnet add package Microsoft.ApplicationInsights

Example with the -v option

dotnet add package Microsoft.ApplicationInsights -v 2.10.0