Skip to content

hello from FAKE! Example script returns Error FS0039: The namespace or module 'Fake' is not defined #2834

@LawrenceSpear

Description

@LawrenceSpear

Description

Using the example hello from FAKE! script returns the module 'Fake' is not defined

Repro steps

Just follow the steps described in the FAKE documentation: https://fake.build/guide/getting-started.html

Expected behavior

Expected it to print "hello from FAKE!"

Actual behavior

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.

Related information

dotnet --info
.NET SDK:
Version: 8.0.400
Commit: 36fe6dda56
Workload version: 8.0.400-manifests.251308be
MSBuild version: 17.11.3+0c8610977

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: c:\program files\dotnet\sdk\8.0.400\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[aspire]
Installation Source: VS 17.11.35312.102
Manifest Version: 8.1.0/8.0.100
Manifest Path: c:\program files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.1.0\WorkloadManifest.json
Install Type: FileBased

Host:
Version: 8.0.8
Architecture: x64
Commit: 08338fcaa5

.NET SDKs installed:
3.1.426 [c:\program files\dotnet\sdk]
5.0.104 [c:\program files\dotnet\sdk]
6.0.425 [c:\program files\dotnet\sdk]
8.0.400 [c:\program files\dotnet\sdk]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions