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

usepackagetargets updates to #r nuget syntax #45467

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Mar 21, 2025

This PR on the fsharp repo adds an option to #r "nuget:dotnet/fsharp#18400

This change updates the release documentation for it.
New text:
image


Internal previews

📄 File 🔗 Preview link
docs/fsharp/tools/fsharp-interactive/index.md Interactive programming with F#

By default ````#r "nuget: ...."```` will not use build targets from the package being referenced during restore. There is a usepackagetargets option to enable the use of these build targets when required, only add usepackagetargets=true if the referenced package was authored to require it during restore.
examples:

```fsharp
Copy link
Member

Choose a reason for hiding this comment

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

It would be good if we knew any popular(ish) package that indeed needs this and make an example out of it here, do we?

@@ -158,6 +158,16 @@ let f (x: Tensor) = sin (sqrt x)
printfn $"{f (dsharp.tensor 1.2)}"
```

By default ````#r "nuget: ...."```` will not use build targets from the package being referenced during restore. There is a usepackagetargets option to enable the use of these build targets when required, only add usepackagetargets=true if the referenced package was authored to require it during restore.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
By default ````#r "nuget: ...."```` will not use build targets from the package being referenced during restore. There is a usepackagetargets option to enable the use of these build targets when required, only add usepackagetargets=true if the referenced package was authored to require it during restore.
By default, ````#r "nuget: ...."```` doesn't use build targets from the package being referenced during restore. The `usepackagetargets` option enables the use of these build targets when required. Only add `usepackagetargets=true` if the referenced package was authored to require it during restore.

@@ -158,6 +158,16 @@ let f (x: Tensor) = sin (sqrt x)
printfn $"{f (dsharp.tensor 1.2)}"
```

By default ````#r "nuget: ...."```` will not use build targets from the package being referenced during restore. There is a usepackagetargets option to enable the use of these build targets when required, only add usepackagetargets=true if the referenced package was authored to require it during restore.
examples:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
examples:
Examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants