4

I have an requirement to use the Msbuild to build the dotnet code and move the code to a specified location.

For dotnet framework 2.0 and above I am able to do it as I can specify the targetframework in build.proj file, but I am not sure how to make a build.proj file for vb6 code ?

If this is possible what will the build.proj file will look like?

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Sidharth
  • 65
  • 9

1 Answers1

9

VB 6 is not .net and isn't supported by MSbuild out of the box. If you need to automate the building of VB6 code then you can call VB6.EXE directly passing in the .vbp project file.

However if you want to make things consistent then you can use the MSBuild extension pack this contains support for building VB6 code via MSBuild

You'll still need to make sure that the VB6 IDE is installed on the machine performing the build

Community
  • 1
  • 1
James Reed
  • 13,873
  • 51
  • 60
  • thnx James, I am runnning the build.exe pragmatically in c# and I have used a build.proj file to copy the code to a location from where it will be deployed to the server by other team. Currently MSbuild.exe is able to copy the code and it runs successfully. DO you see any problem in this or am I doing anything wrong here? – Sidharth Feb 12 '16 at 06:26
  • Automating stuff is always good. The main issue with vb6 builds is making sure you trap any error codes. – James Reed Feb 12 '16 at 09:25
  • Thnx, Our sole purpose for vb6 code is to copy to a location as it is compiled and we need not to built it. As the code is built before it is moved to dimensions (code management tool). we just need to move it to the server. thnx a ton – Sidharth Feb 12 '16 at 13:42
  • MSBuild extension pack links are dead – StayOnTarget May 05 '20 at 17:54