Skip to content

Update documentation following "bug" 2486 - #2520

Merged
matthid merged 2 commits into
fsprojects:release/nextfrom
DavidSSL:Fix-2486
Jun 13, 2020
Merged

matthid merged 2 commits into
fsprojects:release/nextfrom
DavidSSL:Fix-2486

Conversation

@DavidSSL

@DavidSSL DavidSSL commented Jun 6, 2020 •

Copy link
Copy Markdown
Contributor

#2486

Description

This is a documentation update about fake templates following #2486.

There are also typo and grammatical corrections

Comment thread help/markdown/fake-template.md Outdated
Specifies your preferred way to define the nuget packages used in your build:

- `file` (default) - Creates a `paket.dependencies` file to define build dependencies
- `inline` - Defines build dependencies inside the build script

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue was quite a while ago but in addition to your change above inline should have (default) now, correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right. I'll update when I can. I am new to making contribution on Github though. So question is how do I proceed with updating the documentation following your comment? Can I somehow update this pull pull request?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I somehow update this pull pull request?

Indeed, just commit and push to your branch, it will be updated automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for being pedantic or maybe it's my lack of understanding but for this line

  • inline - Defines build dependencies inside the build script

which is now the default, the description, "Defines build dependencies inside the build script", is a bit unclear to me.

Do you mean that in our build script e.g. build.fsx,

we would have to do something like:

#r "paket:
nuget Fake.DotNet.Cli
nuget Fake.IO.FileSystem
nuget Fake.Core.Target
nuget FSharp.Data //"

If so, I think including it in the documentation might be useful because I'm not familiar with this construct.

From my understanding this is a FAKE specific construct because if I try to send this to FSI, I'll get something like

error FS3216: Package manager key 'paket' was not registered in [/usr/share/dotnet/sdk/3.1.201/FSharp; /usr/share/dotnet/sdk/3.1.201/FSharp/], []. Currently registered: nuget

@matthid

matthid commented Jun 8, 2020

Copy link
Copy Markdown
Member

Thanks for taking care of that!

'inline' is now the default option for '--depedencies'
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

Successfully merging this pull request may close these issues.

dotnet new fake does not create paket.dependencies

2 participants