Skip to content

fsproj file text is missing (would help in the case of a user mistake leading to a missing project reference)  #27014

@xela-trawets

Description

@xela-trawets

Normally I wouldn't file my own stupidity as an issue.
But since this is the on-ramp tutorial, I will this time.
I followed the tutorial and slipped up (twice)

What I broke was adding the reference from the app fsproj file to the library. (I went to get a cup of tea and skipped the line in the tutorial)

The fix was to add this to App.fsproj
< ItemGroup >
<ProjectReference Include="..\Library\Library.fsproj" />
</ItemGroup>

My mistake was clear from the error message
(error FS0039: The namespace or module 'Library' is not defined.).
But a link to the fsproj files might help people like me who cant follow instructions.

Now I dont know if it is worth cluttering up the tutorial. However, learning the fsproj format is the less glamourous part of learning FSharp the language, and I often trip up on building and linking when learning something new, (and frequently in stuff I should know too).

My second slip was not saving from the editor. (Cant fix stupid, but I realized when I saw "Hello from F#").

(This can be closed, just my two cents on including the App.fsproj in the tutorial somehow)


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 497987

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-fsharp/svcin-prThis issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions