Vb6 Build with reference.

Feb 16, 2011 at 3:25 PM



I have 2 Dll 

  1. GfkKynetecFramework
  2. GfkKynetecNet

GfkKynetecNet has a reference to GfkKynetecFramework



I have a VBP Build.vbg : 





I have a Build.xml


<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <TPath>C:\Program Files\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks</TPath>
    <TPath Condition="Exists('C:\Program Files (x86)\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks')">C:\Program Files (x86)\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks </TPath>
  <Import Project="$(TPath)"/>
    <VBPath>C:\Program Files\Microsoft Visual Studio\VB98\VB6.exe</VBPath>
    <VBPath Condition="Exists('C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.exe')">C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.exe</VBPath>
    <ProjectsToBuild Include="build.vbg">
      <!-- Note the special use of ChgPropVBP metadata to change project properties at Build Time -->
  <Target Name="Default">
    <!-- Build a collection of VB6 projects -->
    <MSBuild.ExtensionPack.VisualStudio.VB6 TaskAction="Build" Projects="@(ProjectsToBuild)" VB6Path="$(VBPath)"/>
  <Target Name="clean">
    <Message Text="Cleaning - this is where the deletes would go"/>


When i try to build i have this error:
 C:\Builds\2\SharedLibraries\Continous Integration VB6\Sources\Main\Source\Vb6\build.xml (23):  Unable to set the version compatible component: C:\Builds\2\SharedLibraries\Continous Integration VB6\Sources\Main\Source\Vb6\GfkKynetecFramework\Bin\GfkKynetecFramework.dll One or more of the properties in 'C:\Builds\2\SharedLibraries\Continous Integration VB6\Sources\Main\Source\Vb6\GfkKynetecFramework\GfkKynetecFramework.vbp' was bad.  Some or all of the properties might not be set correctly. 

Probleme is due to link with GfkKynetecFramework.dll when it try to compile GfkKynetecNet.dll

Tanks to help me.


Feb 16, 2011 at 7:21 PM

Sorry, I'm not sure. you may want to search some vb forums, e.g. http://www.vbforums.com/showthread.php?t=585252



Feb 17, 2011 at 3:33 PM

In fact it's a mix with VB, TFS, Builder.

My dlls compil correctly on my computer

but how to build a project that referenced a DLL build previews project build (without registering this dll in system32 after build.)