ProjectScaffold icon indicating copy to clipboard operation
ProjectScaffold copied to clipboard

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

Open cmeeren opened this issue 6 years ago • 4 comments

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 avatar Nov 04 '18 09:11 cmeeren

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 avatar Nov 04 '18 09:11 cmeeren

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 avatar Nov 04 '18 09:11 cmeeren

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

image

cmeeren avatar Nov 04 '18 09:11 cmeeren

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

fangyi-zhou avatar Apr 15 '19 21:04 fangyi-zhou