Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Finding the starting point of an open source program.

Posted on 2011-03-08
4
Medium Priority
?
347 Views
Last Modified: 2013-12-17
I have been tasked with extending the functionality of an open source database unit testing suite called DbFIT (http://gojko.net/fitnesse/dbfit and http://fitnesse.info/dbfit).
 
My experience with C# is from a website prospective.

I have the assemblies for DbFIT, how do I locate the starting point of the program/ project?

0
Comment
Question by:Mr_Shaw
  • 2
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35068293
If it is an actual EXE application, rather than a DLL, you need to find the method called "main". That method is the entrypoint.
0
 

Author Comment

by:Mr_Shaw
ID: 35068426
using Red Gate's .NET Reflector I found the EXE.

When I loaded up the Project File it just gives me the following code.

What is my next move?



<VisualStudioProject>
  <CSHARP ProjectType="local" ProjectVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="f9ba497a-1c82-40bd-a252-0c1bf593d082">
    <Build>
      <Settings AssemblyName="TestRunner" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Exe">
        <Config Name="Debug" AllowUnsafeBlocks="true" DefineConstants="DEBUG;TRACE" DebugSymbols="true" IncrementalBuild="false" NoStdLib="false" Optimize="false" OutputPath="bin\Debug\" WarningLevel="4" />
        <Config Name="Release" AllowUnsafeBlocks="true" DefineConstants="TRACE" DebugSymbols="false" IncrementalBuild="false" NoStdLib="false" Optimize="true" OutputPath="bin\Release\" WarningLevel="4" />
      </Settings>
      <References>
        <Reference Name="fit" AssemblyName="fit" />
      </References>
    </Build>
    <Files>
      <Include>
        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
        <File RelPath="Global.cs" SubType="Code" BuildAction="Compile" />
        <File RelPath="TestRunner\TestRunnerMain.cs" SubType="Code" BuildAction="Compile" />
      </Include>
    </Files>
  </CSHARP>
</VisualStudioProject>

Open in new window

0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 35068465
The <Include> section show you the source files included in the project. So, your entry point is going to be in either "Global.cs" or "TestRunnerMain.cs".
0
 

Author Closing Comment

by:Mr_Shaw
ID: 35068968
thanks
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Simple Linear Regression
Six Sigma Control Plans

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question