dotnet / dotnet/fsharp

Make FS0078 a warning instead of an error.

Open
#4,362 8 comments 0 reactions 0 assignees View on GitHub
Area-DependencyManager Area-FSI Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

If you have `#r ""` and `` is invalid then the result is platform dependent and not consistent:

You either:
- get a compilation error `Error FS0078: Unable to find the file ''` in any of ``
- or a warning `warning FS0213: '' is not a valid assembly name`

depending on whether `` is a valid file name, which itself is platform dependent.
Usually I'd suggest making this an error always.
However, considering `FST-1027` or future extensions and https://github.com/fsharp/FAKE/issues/1780. I think it is reasonable to suggest to change `FS0078` into a warning message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.