open FSharp.Compiler.CodeAnalysis
open System.IO

let compile projPath =
    let checker = FSharpChecker.Create()

    let projectOptions = checker.GetProjectOptionsFromCommandLineArgs(
        projPath, [||])
    let wholeProjectResults = checker.ParseAndCheckProject(projectOptions)
                                        |> Async.RunSynchronously
    0

        

[<EntryPoint>]
let main args =
    printfn $"Arguments passed to function : %A{args} {System.Environment.CurrentDirectory}"
    if Array.length args = 1 then
        compile args[0] 
    else
        printfn "FsToCpp fsproj"
        -2
