rnwood / smtp4dev

smtp4dev - the fake smtp email server for development and testing
BSD 3-Clause "New" or "Revised" License
3.07k stars 344 forks source link

Run without installation from NuGet package #339

Closed Piedone closed 4 years ago

Piedone commented 4 years ago

I checked out the Readme, unzipped NuGet packages and I'm a bit confused. If I'd like to run smtp4dev (3.1) without installation as a simple executable (so it can be easily shared and used even in a CI environment without installing anything apart from the .NET SDK), is this possible? Can I use one of the NuGet packages for this?

The aim is to be able to run UI tests that also include e-mail management to an extent, both on a developer machine and in CI, without making a permanent change to the environment and without user interaction.

The Rnwood.Smtp4dev package is a NET CLI package and thus can't be added to a C# project and Rnwood.SmtpServer is a single DLL and to use that I think would be too low-level. I'd imagine that we could just dotnet Rnwood.Smtpdev.dll from tests if the CLI package could be somehow added to the test projects.

Thank you!

Piedone commented 4 years ago

Hmm, it seems I just need to install smtp4dev as a local tool. I'll check this.

Piedone commented 4 years ago

Yep, this will it.