Compiling your projects to .NET

Now you can compile your projects to .NET, using the .NET Extender Menu:

 


Just open your project and choose .NET Compiler - Compile project to .NET

 

Here you can choose if you want to build a Console Exe, a Win Exe, a library (DLL) or a WebSite (dll).

You can check some options that could be useful for your project:

  1. 4 letter abbreviations. If your code use 4 letter abbreviations i.e. CREA TABL instead of CREATE TABLE you should check this to allow the compiler to understand that.
  2. Copy runtime to output files. This copies the needed files to the output directory, so you can just double click in your exe to run instead of manually copying the vfp.runtime files
  3. Copy the referenced assemblies. This is needed if your referenced assemblies are not in the GAC (Global Assembly Cache), i.e. if are not part of the .NET Framework, so at runtime the .NET Framework can resolve the referenced assembies, otherwise you will get some runtime exceptions when your program tries to use some assemblies not in its directory.

In the references tab, you input the referenced assemblies. It is very important to add at least the following assemblies:

vfp.runtime.dll

vfp.runtime4.dll

vfp.runtime5.dll

vfp.runtime.classes.dll

vfp.runtime.dbc.dll

 

And click the Compile button to have the process begin. It shows the current steps like the VFP project manager does, using WAIT WINDOW.

If you want to run your program or WebSite from here you can click the run button it will start the program (exe or Win Exe) or for WebSites the FoxServer listening in the port 8080 by default.

For WebSites To test some page just type http://LocalHost:8080/YourPage.aspx and see your code now in the Web!.