fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

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

Open cmeeren opened 5 years ago

cmeeren commented 5 years ago

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

cmeeren commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

image

fangyi-zhou commented 5 years ago

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