Skip to content
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

Getting Started Tutorial - Target.Create and RunOrDefault don't exist #1845

Closed
stmax82 opened this issue Apr 4, 2018 · 1 comment
Closed

Comments

@stmax82
Copy link

stmax82 commented Apr 4, 2018

I'm currently testing fake for a new project and started following the getting started tutorial at https://fake.build/fake-gettingstarted.html.

It says "This documentation is for FAKE.exe version 5.0 or later." and I've got fake 5.0.0-beta029.

The first code snippet where targets are defined doesn't work because Target.Create and Target.RunOrDefault don't exist:

#r "paket:
nuget Fake.Core.Target //"
#load "./.fake/build.fsx/intellisense.fsx"

open Fake.Core

// Default target
Target.Create "Default" (fun _ ->
  Trace.trace "Hello World from FAKE"
)

// start build
Target.RunOrDefault "Default"

It seems like Target.Create should be Target.create (lower case) and Target.RunOrDefault should be Target.runOrDefault. fake build works when I use the lower case functions.

Is the documentation not really up to version 5.0 or did I do something wrong?

@matthid
Copy link
Member

matthid commented Apr 4, 2018

Yes thanks, this is afaik already fixrd in the next beta branch. should be fixed shortly. Sorry

@matthid matthid mentioned this issue Apr 7, 2018
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants