Skip to content

NSG.Library

Phil Huhn edited this page Apr 30, 2018 · 2 revisions

Welcome to the NSG.Library wiki

Overview

This solution contains three .Net projects as follows:

The EMail library uses the other two projects.

Installation

  1. Always operate with least privileges (not as an administrator),
  2. I downloaded the master zip by the Clone or Download pull-down on the root folder of NSG.Library. I copied NSG.Library-master folder and pasted the folder to my development folder.
  3. I renamed NSG.Library-master to NSG.Library.
  4. SMTP mock (by fake-smtp-server):
    npm install fake-smtp-server -g
    • From Windows Explorer right clicked fake-smtp.bat, and unblock the access.
    • Edit the fake-smtp.bat file and verify it is OK to execute.
    • From Windows Explorer clicked fake-smtp.bat, and launch the fake-smtp-server. Browse to the configured port (localhost:10080).
  5. From Windows Explorer clicked NSG.Library.sln, and launch Visual Studio 2017. I use the Community edition.
  6. If desired create an account with SendGrid and configure the NSG.Library_Tests app.config key Email:ApiKey value with your API key.
  7. From Visual Studio 2017 go into each project and set the build version desired (.Net Framework 4.6.1 default).
  8. From Visual Studio 2017 build the solution.
  9. Run the unit tests (if the SendGrid is not configured then 2 tests will fail).
Good luck, Phil
Clone this wiki locally