-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Workspace lib #32
Conversation
from commit 7ed9a0b8edf1474334d48e094ebd557dac92c378
from commit 7ed9a0b8edf1474334d48e094ebd557dac92c378
from commit 7ed9a0b8edf1474334d48e094ebd557dac92c378
Great to see you're improving he project @enricosada! 🙌 It'd be fantastic to be able to get the F# compiler args of a script. This is currently failing with current FCS package: About the location of msbuild, Fable is only compatible with the new project format so we would just need to specify the |
That's one of the reason of this splitted code, was easier to refactor (FSAC is too entangled). let msbuildLocator = MSBuildLocator()
let config = // override msbuild/dotnet locations
{ LoaderConfig.Default(msbuildLocator) with
MSBuildNetSdkHost = DotnetMsbuild("/path/to/dotnet") }
let loader = Loader.Create(config)
loader.LoadProjects [ @"/path/to/my.fsproj" ] // or loader.LoadSln("/path/to/my.sln")
loader.Projects // Map of (path: string) * ProjectOptions
I think it's working now ( let msbuildLocator = MSBuildLocator()
let netFwInfo = NetFWInfoConfig.Default(msbuildLocator) |> NetFWInfo.Create
let fcs = FSharpChecker.Create(..)
let fcsBinder = FCSBinder(netFwInfo, fcs)
let tfm = netFwInfo.LatestVersion () // or specify a .NET version like `"4.6.1"`
let projOptions =
fcsBinder.GetProjectOptionsFromScriptBy(tfm, file, input)
|> Async.RunSynchronously |
ref #16
extract FSAC code for loading (fsproj and fsx) and package in a nice to use library (
Dotnet.ProjInfo.Workspace
), plus features and cleanup.features:
obj
dirtest/Dotnet.ProjInfo.Workspace.Tests
)Dotnet.ProjInfo.Workspace.FCS
, to get data ready to be used in FCS/cc @alfonsogarciacaro @Krzysztof-Cieslak @baronfel this mean we will remove the code for loading in the FSAC/fable and just do something like the following.
Mostly is also because is tons easier to improve and test
to get notifications
to get FCS (todo, but likely)
Other stuffs: