lambda3 / iisexpress-bootstrapper Goto Github PK
View Code? Open in Web Editor NEWIIS Express Bootstrapper is a very simple library built to make easy run IIS Express from your C# code for a web application project.
License: MIT License
IIS Express Bootstrapper is a very simple library built to make easy run IIS Express from your C# code for a web application project.
License: MIT License
It can be simple as set an Dictionary<string, string> in the configurations
CodeFactor found multiple issues:
src\IISExpressBootstrapper\Parameters.cs:48
Aside the conventions, it will be a good feature allow users to specify a different folder to the website path
Allow user to specify the IISExpress executable path.
private static string GetDefaultIISExpressPath()
{
string iisExpressX86Path = $"{Environment.GetEnvironmentVariable("ProgramFiles(x86)")}\\IIS Express\\iisexpress.exe";
string iisExpressX64Path = $"{Environment.GetEnvironmentVariable("ProgramFiles")}\\IIS Express\\iisexpress.exe";
return File.Exists(iisExpressX86Path) ? iisExpressX86Path : iisExpressX64Path;
}
In order to always kill the process, even if dispose method was not called, it's necessary to create a safe handler for IIS Express process.
This is necessary for not let a open process if a test has an unexpected end in a build environment, for example.
The idea is when the test runner, or the process that started the IIS Express process get to the end, the IIS Express process automatically shuts.
For some reason I just started getting the following error in my test suite tear down method.
No idea why/how the IIS process is terminating before it hits dispose but wonder if it would be a good idea anyways to check if the process is still running before killing it? If so, I can submit a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.