Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joncloud/iis-expressify
IISExpressify is a simple wrapper for running IIS Express.
https://github.com/joncloud/iis-expressify
asp-net iis iisexpress integration-testing testing wcf webforms
Last synced: about 2 months ago
JSON representation
IISExpressify is a simple wrapper for running IIS Express.
- Host: GitHub
- URL: https://github.com/joncloud/iis-expressify
- Owner: joncloud
- License: mit
- Created: 2018-06-08T04:25:59.000Z (over 6 years ago)
- Default Branch: publish
- Last Pushed: 2020-08-08T04:16:25.000Z (over 4 years ago)
- Last Synced: 2024-04-28T09:05:59.943Z (9 months ago)
- Topics: asp-net, iis, iisexpress, integration-testing, testing, wcf, webforms
- Language: C#
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# IISExpressify
[![NuGet](https://img.shields.io/nuget/v/IISExpressify.svg)](https://www.nuget.org/packages/IISExpressify/)## Description
IISExpressify is a simple wrapper for running IIS Express.## Licensing
Released under the MIT License. See the [LICENSE][] file for further details.[license]: LICENSE.md
## Installation
In the Package Manager Console execute```powershell
Install-Package IISExpressify
```Or update `*.csproj` to include a dependency on
```xml
```
## Usage
Sample HTTP server running on 8080:
```csharp
using IISExpressify;
using System.IO;static async Task Main(string[] args) {
var path = Environment.CurrentDirectory;
var file = Path.Combine(path, "test.txt");
File.WriteAllText(file, "lorem ipsum");using (var iisExpress = IISExpress.Http().PhysicalPath(path).Port(8080).Start())
using (var http = iisExpress.CreateHttpClient()) {
var contents = await http.GetStringAsync("/test.txt");
Console.WriteLine(contents);
}
}
```Running this will respond with
```PowerShell
> dotnet MyProgram.dll
lorem ipsum
```For additional usage see [Tests][].
[Tests]: tests/IISExpressify.Tests