There are several considerations to keep in mind:
- Silverlight code is executed in web browser.
- Silverlight runtime is started once for all browsers of the one type.
- DotCover will start or restart the browser.
- Only silverlight 4.0 and higher runtime is supported. (Previous versions of silverlight runtime don't support profiling API).
Because of all that considerations recommended workflow is:
- Start website with silverlight in VS development server or in IIS or even deploy to other webserver
- Run dotCover->Profile Application.
- Fill the url (example file:///D:/Development/dotCover10/Test/Data/ColorPickerSilverlight/ColorPicker/Bin/Debug/TestPage.html)
- Fill the path to pdb folder (Press small Arrow down button to show additional options. Press "Edit symbol search policy..." button, and fill search path by the path to your dll and pdb folder)
- Press OK to start.
- Exercise your Silverlight application.
- Press "Get snapshot". We are done.
1. If you never press Get Snapshot, then you will not get anything.
2. If you get zero coverage, then possibly you made a mistake in step 4.