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();
}
}
}
source
share