.net - How to organize multiple executable F# files into one VS solution? -


i'm learning f# , using solve problems "haskell 99 problems" practice. i'm coding visual studio 2013 community on windows.

my problem don't know how organize sources codes in 1 solution/project.

in other languages ruby, organize source codes like:

haskell99/     problem1.rb     problem2.rb     ...     problem99.rb 

i code , execute each source file independently in ide.

but if organize f# source codes in similar way in visual studio:

solution 'haskell99'     project 'haskell99'         problem1.fs         problem2.fs         ...         problem99.fs 

i can not switch source code , press ctrl+f5 execute it. if so, source codes contained in solution compiled 1 single .exe file.

i tried other ways 1 project per problem:

    solution 'haskell99'         project 'problem1'             program.fs         project 'problem2'             program.fs         ...         project 'problem99'             program.fs 

or f# scripts in solution:

    solution 'haskell99'         project 'haskell99'             problem1.fsx             problem2.fsx             ...             problem99.fsx 

they not work.

is there best practice achieve this:

switch source file double click it;  press ctrl + f5 compile , execute source file. 

thanks response in advance.

if need start debugger, one-project-per-problem option. it's 1 step, if follow http://blog.michaelckennedy.net/2007/07/30/visual-studio-tricks-series-1-set-as-startup-project/ add hotkey set-as-startup-project, process is

  • double-click source file
  • hit ctrl-shift-p set startup project
  • hit f5 compile , execute project debugger attached

or if don't need file open in editor, it's just

  • single-click project
  • hit ctrl-shift-p set startup project
  • hit f5 compile , execute project debugger attached

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -