Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 154505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:59:26+00:00 2026-05-11T09:59:26+00:00

Be nice, I’m a total newbie to F#. I have created my first console

  • 0

Be nice, I’m a total newbie to F#. I have created my first console app, and I can’t figure out how F# decides which of my .fs files its going to run on startup. Normally apps have an entry point, and the F# forms projects I’ve seen have an entry point. My console project does not.

It always seems to start with the last file I’ve added, which is a giant pain. I can’t believe its supposed to work this way. I must be doing something wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:59:27+00:00Added an answer on May 11, 2026 at 9:59 am

    F# does support entry points, with EntryPointAttribute. See the last screenshot of this blog for details. The ‘main’ function takes a string array and returns an int, and the EntryPoint must be in the last code file in the project. See also 12.1.4 of the language spec.

    Note that if you do not provide an explicit entry point, then the ‘top level code’ in the last file of the project effectively behaves like ‘main’.

    (Incidentally, see also this blog for info on managing ordering files in a project inside VS.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the nice and interesting problem I'm trying to figure out: I have a
I have a nice clean standards-compliant codebase that I can compile with GCC's -ansi
I have a nice polynomial, which is in fact the non-posted answer to this
a nice member here helped me out to create a form which adds steps
I have found a nice jquery increment script. The increment portion can accept a
So I have a nice python app for OS X that is working great.
A nice C interview question: Can you write a function which swaps two int*
Go Launcher have a nice first-time tutorial. it is very similar to Stock ICS
Nice and (hopefully) easy. I am trying to work out how to grab the
i have a really nice style for my tables. { sorry links no more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.