Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FST-1027 instead of the ugly FAKE header #1768

Closed
matthid opened this issue Jan 28, 2018 · 0 comments
Closed

Use FST-1027 instead of the ugly FAKE header #1768

matthid opened this issue Jan 28, 2018 · 0 comments
Assignees

Comments

@matthid
Copy link
Member

matthid commented Jan 28, 2018

Description

We already have an approved syntax for F# (https://github.com/fsharp/fslang-design/blob/master/tooling/FST-1027-fsi-references.md). We could implement that and get rid of the FAKE header in the following way:

#if FAKE_DEPENDENCIES
#r "paket: storage: none"
#r "paket: source https://api.nuget.org/v3/index.json"
#r "paket: nuget Fake.Core.Target prerelease"
#endif

or as an alternative:

#r "fake: Fake.Core.Target prerelease"

(First fake line would set NuGet-Gallery as source (if non exists) and storage:none)

  • We have an #if block around the directives.
  • We preprocess that block and don't set the FAKE_DEPENDENCIES at runtime
  • (Future) we can set that flag and make the block optional once everyone supports that syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant