How do I build a new "openbve.exe"

For questions or suggestions related to the source code.

How do I build a new "openbve.exe"

Postby Electroburger on Sun, 22nd Jun 2008, 13:46

Hi,

Above all, thanks for starting OpenBVE. It's always good to see someone with the pluck and gumption to do something like this, and I'm sure OpenBVE will be successful.

I was able to download and peruse the source code with no problems. I have used Visual Studio 2005 for about a year now, developing in Visual Basic, and have plenty of serious gaps in my knowledge of .Net and Visual Studio. But how do I get Visual Studio 2005 to produce a single .EXE file of your application? It isn't Build/Rebuild?

In my usual work, I'm producing DLLs which are consumed by non-.Net programs, MS Office, and the like. For development, I just copy my DLLs to where I want and everything works. Someone else does the builds (.msi files) though I've done one or two.

Thanks and regards,

Electroburger
Electroburger
 
Posts: 2
Joined: Sun, 15th Jun 2008, 20:18

Re: How do I build a new "openbve.exe"

Postby michelle on Sun, 22nd Jun 2008, 14:23

The program is written in C#, not Visual Basic. Either you download the Visual C# Express Edition, or if you have Visual Studio, you might need to additionally install the C# language version from your CDs. You can also use SharpDevelop (which is free of charge) instead of Visual Studio. Additionally, install the Tao framework from http://www.taoframework.com.

Once you have the suitable development tools, open the OpenBve.sln file. For Visual Studio, click on Build > Rebuild Solution. The EXE file will be generated in the OpenBve\bin\Release subfolder.
User avatar
michelle
Site Admin
 
Posts: 1147
Joined: Mon, 14th Apr 2008, 20:36

Postby Electroburger on Sun, 22nd Jun 2008, 16:57

Got it, thanks for the prompt reply. I had everything I needed except for knowing where to look.

The only "problem" was that Visual Studio overwrites the old .EXE file instead of deleting it. Thus when you wave the mouse over the file name in the explorer, it shows the date the file was created, giving the impression that the file did not change.
Electroburger
 
Posts: 2
Joined: Sun, 15th Jun 2008, 20:18

Re: Electroburger

Postby alvinwong on Sun, 17th May 2009, 11:02

Electroburger wrote:The only "problem" was that Visual Studio overwrites the old .EXE file instead of deleting it. Thus when you wave the mouse over the file name in the explorer, it shows the date the file was created, giving the impression that the file did not change.

Do you mean that the creation date won't change?
The simplest way is to delete it and rebuild.
Problems, solutions, problems, solutions...
Tired on these, and trying to make openBVE train Exterior, then...
Problems... ###again### Crazy...
Please visit http://www.hochun.nets.hk/discuz/index.php
User avatar
alvinwong
 
Posts: 240
Joined: Sat, 24th Jan 2009, 05:16
Location: Hong Kong


Return to Source code

Who is online

Users browsing this forum: No registered users and 0 guests