i run cassiniDev from cmd
C:\CruiseControl.NET-1.5.0.6237\cassinidev.3.5.0.5.src-repack\CassiniDev\bin\Debug\CassiniDev.exe /a:D:_CCNET\proj /pm:Specific /p:3811
and then start debugging and testing. How can i stop cassiniDev from CMD after i finished testing. I try with cassiniDev_console but console not working so i am using cassiniDev from console.
First, glad to see someone is getting use out of CassiniDev, and to answer your question:
You can start it with the timeout param: /t:[ms till kill]
This will tell the app to shutdown after 20 seconds without a request.
Regarding the console app failing: The repack should have solved the issues with the console build. Can you add an issue and describe the problem.
Secondly, you may notice in the console project a type called
Fixturethat, if you follow the example NUnit tests, can be used to capably host the server in a test fixture and shut it down when the test completes.Thirdly, CassiniDev was created to enable an easy to use ASP.Net server on an IP other than loopback.
Your command line indicates that you do not require this so you may have a better experience using a more native method, such as simply hosting the WebDevHost.
I plan to advertise this alternate possibility on the CassiniDev page soon. Looks like I should hurry up. ;-)
Try this:
Sample Test Fixture
WebHostServer.cs
NOTE:
The Microsoft.VisualStudio.WebHost namespace is contained in the file WebDev.WebHost.dll. This file is in the GAC but it is not possible to add a reference to this assembly from within Visual Studio.
To add a reference you will need to open your .csproj file in a text editor and add the reference manually.
Look for the ItemGroup that contains the project references and add the following element:
Reference: the second example from http://www.codeproject.com/KB/aspnet/test-with-vs-devserver-2.aspx