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

"'fake' is not recognized as an internal or external command" when running build.cmd #341

Open
cmeeren opened this issue Nov 4, 2018 · 4 comments

Comments

@cmeeren
Copy link

cmeeren commented Nov 4, 2018

Description

When I run build.cmd for the first time, I get an error after restore has completed (the following is from a second run of build.cmd):

Restore completed in 24,82 ms for D:\Code\GH\JsonSkippable\build.proj.
Restore completed in 12,76 ms for D:\Code\GH\JsonSkippable\build.proj.
'fake' is not recognized as an internal or external command,
operable program or batch file.
'fake' is not recognized as an internal or external command,
operable program or batch file.

Repro steps

Clone repo and run build.cmd from the root of the repo.

Expected behavior

I get asked questions about project name etc.

Actual behavior

I get the error described above.

Related information

  • Operating system: Windows 10
  • Branch: master
@cmeeren
Copy link
Author

cmeeren commented Nov 4, 2018

This project https://github.com/MangelMaxime/fulma-demo has clitool dotnet-fake in the root paket.dependencies, the scripts are named fake.cmd and fake.sh, and they run dotnet fake instead of just fake. Perhaps any or all of those can help?

@cmeeren
Copy link
Author

cmeeren commented Nov 4, 2018

I have assumed that FAKE should be installed as part of the bootstrapping process (restoring build.proj). If this is not the case and FAKE is a prerequisite, this should be added to the documentation along with steps to install, e.g. dotnet tool install fake-cli -g.

@cmeeren
Copy link
Author

cmeeren commented Nov 4, 2018

(On a side note, something is wrong with GitHub... Wrong order and time travel 😆 )

image

@fangyi-zhou
Copy link

I have #345 to address this issue with fake by adding fake template from dotnet new fake

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