View previous topic :: View next topic |
Author |
Message |
lvt
Joined: 27 Apr 2006 Posts: 2
|
Posted: Wed May 03, 2006 1:42 pm Post subject: License and Visual Build |
|
|
We are using Visual Build 6 for building. Each time the build script runs I am asked to enter the license key even though the license key has been embeeded in the project and the project builds fine in Visual Studio 2005.
What can I do to register the license when using Visual Build? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed May 03, 2006 10:44 pm Post subject: |
|
|
Do you get prompted for license key when you do a rebuild solution from within Visual Studio?
Are you by any chance (re)-installing the Virtual Tree DLL in the GAC as part of your build or setup process? _________________ Infralution Support |
|
Back to top |
|
|
lvt
Joined: 27 Apr 2006 Posts: 2
|
Posted: Thu May 04, 2006 7:33 am Post subject: |
|
|
No I do not get prompted when doing a rebuild within Visual Studio 2005 and we are not installing the Virtual Tree DLL in the GAC as part of the build process.
I think the problem arises because all source files are deleted prior to the build and there after fetched from the source control. The license has been entered on another machine than the build machine.
Is the license bound to a single machine? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu May 04, 2006 9:12 am Post subject: |
|
|
No the license is not bound to a single machine. Although you should have a license for each developer
By default the license file is created next to the DLL being used in the compilation. Under VS2003 this was always the publicly referenced DLL (found under Program Files/Infralution/Virtual Tree/bin). In VS2005 Visual Studio actually uses this DLL at design time (ie when you display form editors) but when you compile the DLL used is loaded from the GAC directory. Hence license files get saved in two different places and when you first do a build you get asked for a license even if you had previously entered a license when displaying a form editor.
If you re-register the DLL in the GAC then the GAC directory (including the license file is deleted) hence my question.
Look at the references to the Virtual Tree DLL's in the Solution Explorer window and check that the CopyLocal property is set to false. If this is set to true then Visual Studio will make a local copy of the DLL and the license file may well get created in the local Obj or bin directory (which is being obliterated by your Visual Build). _________________ Infralution Support |
|
Back to top |
|
|
|