This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi! I am trying out NCrunch for continous testing, and I have problems getting our licensed WPF Elements components to work with NCrunch workspaces. I've tried to link the Mindscape.WpfElements.WpfElementsCore.lic file from our dependencies-folder. I've added the dependencies-folder (where I have the .dll and the .lic) to the NCrunch workspace. I've added the Properties-folder (where I have the licenses.licx) to the NCrunch workspace. I've tried to copy the file to the project root. I've tried to copy the file to the Properties-folder. Nothing seems to work. The solution builds and runs without problem outside of the NCrunch workspace. The error I get is: NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshootingproject-build-issues Properties\licenses.licx (1): Exception occurred creating type 'Mindscape.WpfElements.DropDownColorPicker, Mindscape.WpfElements, Version=6.0.2734.23168, Culture=neutral, PublicKeyToken=0a92c4b7d9c14aa4' System.ComponentModel.LicenseException: A valid license cannot be granted for the type Mindscape.WpfElements.WpfElementsCore. Contact the manufacturer of the component for more information. Properties\licenses.licx (2): Exception occurred creating type 'Mindscape.WpfElements.WpfElementsCore, Mindscape.WpfElements, Version=6.0.2734.23168, Culture=neutral, PublicKeyToken=0a92c4b7d9c14aa4' System.ComponentModel.LicenseException: A valid license cannot be granted for the type Mindscape.WpfElements.WpfElementsCore. Contact the manufacturer of the component for more information. Properties\licenses.licx (3): Exception occurred creating type 'Mindscape.WpfElements.SplitButton, Mindscape.WpfElements, Version=6.0.2734.23168, Culture=neutral, PublicKeyToken=0a92c4b7d9c14aa4' System.ComponentModel.LicenseException: A valid license cannot be granted for the type Mindscape.WpfElements.WpfElementsCore. Contact the manufacturer of the component for more information. Best regards, |
|
|
Hello Roland Unfortunately the only way I have been able to solve this is a little bit messy, but it may be worth a try and could give you an idea of a better solution. Somewhere in your machine, create an _ncrunchreferences folder. Copy your Mindscape.WpfElements.WpfElementsCore.lic file into this folder. Then, manually edit each of your .csproj files that use WPFElements to include this code:
Make sure the path points to the lic file you pasted into your _ncrunchreferences, relative to the csproj. And that should be it. Now when NCrunch builds the project, it will copy the lic file into the _ncrunchreferences folder within the workspace, which is where the dll should also have been copied to. I don't know much about NCrunch, but to make this a bit cleaner, you may be able to make a pre-build event that NCrunch could run which copies the lic file into the appropriate folder instead of editing the project files. I hope this helps. I would be interested to hear how you end up solving this. -Jason Fauchelle |
|