-
Notifications
You must be signed in to change notification settings - Fork 6k
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
base: main
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples: | |
Examples: |
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:
Internal previews