What has changed on Microsoft VB.Net Compile Option between FB 4.2.0.317 and FB 6.0.0.648

We have just upgraded a project from FB 4 to FB 6, one of the actions that was untouched except for upgrading is now suddenly giving problems. The Problem has to do with the Licencing of 3rd party components.

For each dll in our build the project will checkout a version from Source Safe, build it and copy the compiled files to a specified location. I have checked that everything in the folder is identical between the build as performed in FB4 & FB6 but the Compiler fails on the FB6 Version.

Here is the FB4 Action

         
            Microsoft VB.Net Project Compiler [%CurrentFile%]
           
           
            Debug
            False
            Microsoft VB.Net Project Compiler [%CurrentFile%]
            True
            True
           
           
            False
            True
            False
            True
            %Basedir%\Assemblies;%Basedir%\Components
           
            0
            1.0
            False
            True
            0
            C:\Build\%CompilerProjectFile%
            1000
           
            v1.1
            False
           

While this is the FB6 Action

             
               
                 
                0
               
               
                Release
                False
               
                 
                True
                False
                True
               
               
                False
                False
               
                False
               
                True
                %Basedir%\Assemblies;%Basedir%\Components
                False
               
                0
                True
                0
                c:\NewBuild\%CompilerProjectFile%
                1000
               
                v1.1
                False
                True
                2
                False
               

The Path Build was changed to Newbuild only after the error occurred so that I could compare what was happening step by step.

Here is the Result Log under FB4

Resolving References....
Adding Reference : System.dll
Adding Reference : System.Data.dll
Adding Reference : System.Xml.dll
Adding Reference : System.Drawing.dll
Adding Reference : System.Windows.Forms.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraGrid3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Utils3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Data3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraEditors3.dll
Read in 15 resources from 'C:\Build\DXGridControl.resx'
Writing resource file...  Done.
Processing Licenses file : C:\Build\licenses.licx
Processing License string : DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid3, Version=3.1.0.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
Warning : Unable to locate Lic file : C:\Build\Output\DevExpress.XtraGrid.GridControl.lic
Lic files need to be copied to the Bin\ folder otherwise the license compiler will not find them!
If the control does not use .lic files then ignore this warning.
Adding Module : DevExpress.XtraGrid3.dll
Microsoft (R) .NET License Compiler
[Microsoft .Net Framework, Version 1.1.4322.2300]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.


Processing complist 'C:\Build\licenses.licx'...
Creating Licenses file C:\Build\obj\Debug\nutcracker.components.dxgridcontrol.dll.licenses...
Command Line : @"C:\Build\fbresp.rsp"
Microsoft (R) Visual Basic .NET Compiler version 7.10.6310.4
for Microsoft (R) .NET Framework version 1.1.4322.2300
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

.
Project Compiled OK.

While This is under FB6

Microsoft VB.Net Project Compiler [Nutcracker.Components.DXGridControl.dll]
    Status: Error
      Date: 2008/06/17
      Time: 14:18:44:494
       End: 14:18:56:540
  Duration: 00:00:12:046

Action Messages:
Resolving References....
Adding Reference : System.dll
Adding Reference : System.Data.dll
Adding Reference : System.Xml.dll
Adding Reference : System.Drawing.dll
Adding Reference : System.Windows.Forms.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraGrid3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Utils3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Data3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraEditors3.dll
Read in 15 resources from 'c:\NewBuild\DXGridControl.resx'
Writing resource file...  Done.
Processing Licenses file : c:\NewBuild\licenses.licx
Processing License string : DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid3, Version=3.1.0.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
Warning : Unable to locate Lic file : c:\NewBuild\Output\DevExpress.XtraGrid.GridControl.lic
Lic files need to be copied to the Bin\ folder otherwise the license compiler will not find them!
If the control does not use .lic files then ignore this warning.
Adding Module : DevExpress.XtraGrid3.dll
Error compiling licenses file : Failed to execute program. Error : The system cannot find the file specified

Both  FB4 & FB 6 thave the options set to default to VS 2003 on the same path

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\

Could anyone shed some light on what's changed.

Regards

Dean

The FB6 Configuration is

 

 

 

Some Additional Information

I Don't see a response file being created in FB6 no matter what the state is of KeepResponseFile.

Hi Dean,

Sorry to hear you’re having problems. Can you confirm that the .lic file is present in the output directory for both projects, as suggested by the warning?

Regards,

Angus

Hi Angus

There is no Lic File used by the devExpress components. As you can see in the FB4 build the warning is the same. It looks like it can't load the Licence compiler but why only on FB6 and  not FB4.

Hi Dean

The manner in which we detect the location of  the SDK Path has changed in FB6, the code was becoming a bit untidy due to the inconsistent way in which microsoft reports the location of the frameworks and sdk's in the registry. We now use an xml config file which is installed with FinalBuilder.

The reason it's failing is because it cannot file lc.exe, which should be in the sdk folder. I have added more error handling which will report where it thinks the license compiler should be.


In the mean time, if you look in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework

See what the value for sdkInstallRootv1.1 is. That is where the 1.1 SDK should be, open that folder in explorer and check if lc.exe is there.

Hi Vince,

The Key is value is "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1" bit LC.EXE is in "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin"

I tried copying LC.EXE to the root folder but that didn't make a difference.

Regards

Dean

 

Hi Dean

Please try this build and post the log from the action, it should hopefully provide more logging when it fails to find the license compiler.

https://www.finalbuilder.com/downloads/finalbuilder/610/FB610_781.exe

Hi Vince,

As you can see here it is looking for LC.EXE at  \LC.EXE

Microsoft VB.Net Project Compiler [Nutcracker.Components.DXGridControl.dll]
    Status: Error
      Date: 2008/06/24
      Time: 08:41:44:632
       End: 08:41:48:304
  Duration: 00:00:03:672

Action Messages:
Resolving References....
Adding Reference : System.dll
Adding Reference : System.Data.dll
Adding Reference : System.Xml.dll
Adding Reference : System.Drawing.dll
Adding Reference : System.Windows.Forms.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraGrid3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Utils3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.Data3.dll
Adding Reference : C:\Program Files\Common Files\DevExpress\.NET.v3\DevExpress.XtraEditors3.dll
Read in 15 resources from 'C:\NewBuild\DXGridControl.resx'
Writing resource file...  Done.
Error compiling licenses file : License Compiler not found at : \lc.exe

Regards

Dean

Just a quick follow up, By Copying LC.EXE to the root folder all works OK. SO We at least now have a work around.

Regards
Dean

Hi Dean

Thanks for the info, I have check in a fix (I hope) for this, I’ll let you know when we have a test build available with the fix.

Sorry for the delay Dean.

https://www.finalbuilder.com/downloads/finalbuilder/610/FB610_804.exe

Hi
On a quick test the fix looks OK, I’ve deployed it for tonights build and let you know after that has run (14Hours)

Can confirm that the problem is resolved

Thanks for confirming Dean.