You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hello from FAKE! Example script returns Error FS0039: The namespace or module 'Fake' is not defined #2834
Script is not valid:
C:\Projects\test\build.fsx (5,5)-(5,9): Error FS0039: The namespace or module 'Fake' is not defined.
C:\Projects\test\build.fsx (8,0)-(8,6): Error FS0039: The value, namespace, type or module 'Target' is not defined.
C:\Projects\test\build.fsx (13,0)-(13,6): Error FS0039: The value, namespace, type or module 'Target' is not defined.
fake --version
FAKE 6 - F# Make (6.1.2.0) (running on .NETCoreApp,Version=v6.0) (this line is written to standard error, see #2066)
FakePath: C:\Users*****.dotnet\tools.store\fake-cli\6.1.2\fake-cli\6.1.2\tools\net6.0\any\Fake.Runtime.dll
Paket.Core: 8.1.0
I've tried setting the FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION to 6.0 and 8.0 with the same results
I think you're trying to use the fake dotnet tool, which honestly I didn't have much luck with (i'm a newbie to FAKE, so I might be missing something obvious).
Instead, I started running my build.fsx file using the following command: dotnet fsi build.fsx -t Hello
Activity
github-actions commentedon Sep 25, 2024
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!
nicholas-peterson commentedon Nov 13, 2024
I think you're trying to use the fake dotnet tool, which honestly I didn't have much luck with (i'm a newbie to FAKE, so I might be missing something obvious).
Instead, I started running my build.fsx file using the following command:
dotnet fsi build.fsx -t HelloMy build.fsx has the following contents:
Compared to the first example on the website, this feels clearer to me:
I know this question was from awhile ago so I'm sure you've resolved it by now, but maybe for newer devs this might help.
I'd also love to know if there is any huge downside to running Fake this way?