-
Notifications
You must be signed in to change notification settings - Fork 588
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
Error 'Target ""Default"" is not defined.' - but the target is there #2107
Comments
Can you please provide the command you use to call fake? |
fake run build.fsx both end up with the same messages |
@mapfel Can you please upload your script file you wrote? |
it is exactly that one from the tutorial |
@mapfel From your output it looks like some quotes got added in your setup/environment . Did you add some environment variables? |
attached a zip, including the fake scripts, my environment and the output |
your are right: it was the TARGET variable in my environment! |
@mapfel Yes sadly that is an historic artifact and still there because of backwards compat... Maybe we should warn if it is used. |
Yes, in case somebody tries to upgrade like me, he will run into the same situation. It was a very frustrating experience not to be able to run the Getting Started sample. |
@mapfel Thanks for reporting, next version fake will tell when it uses the |
Description
followed tutorial "GETTING STARTED WITH FAKE - F# MAKE"
https://fake.build/fake-gettingstarted.html
after pasting the 2nd code block of "CLEANING THE LAST BUILD OUTPUT"
https://fake.build/fake-gettingstarted.html#Cleaning-the-last-build-output
I get the error
The last restore is still up to date. Nothing left to do.
run "Default"
Building project with version: LocalBuild
The following targets are available:
Clean
Default
Target ""Default"" is not defined. Existing targets:
Script reported an error:
-> Target ""Default"" is not defined.
Related information
The text was updated successfully, but these errors were encountered: