F # console application does not work. C # console application

I am trying to deploy a simple f # console application to a colleague's computer, but it continues to fail. After double-clicking on the application icon, a console window appears, but then a Microsoft error reporting window appears asking if I want to send an error report, then I will abandon some text flashes in the console window. It looks like an error message, but the window closes too quickly to say. It is strange if I create a similar C # application, it works. I am targeting the .net 4 client platform in release mode.

Here is the code

f # code (doesn't work):

open System

printfn "print test"
Console.ReadLine() |> ignore

C # code (works):

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestCApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Testing...");
            Console.ReadLine();
        }
    }
}
+3
source share
2 answers

F #, FSharp.Core, :

C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll

Windows 7 (64-)

F #, .

http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/release.aspx

EDIT: ( ildjarn):

http://www.microsoft.com/en-us/download/details.aspx?id=13450

+5

F # # F #, :

System.Console.WriteLine "print test"
System.Console.ReadLine() |> ignore

off 2-liner above , #, raw.NET, printfn F # F #, , , , . .

+8

All Articles