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

Condition in PackageReference generated from #r "nuget: ... directive #600

Closed
dave-yotta opened this issue Dec 16, 2020 · 0 comments
Closed
Labels

Comments

@dave-yotta
Copy link

Sometimes we want to conditionally reference packages: https://stackoverflow.com/a/60401988/13331441

Opened similar feature request in roslyn for #r in general, but from what I remember I think you parse the nuget directives from scripts directly and turn them into etc.

So we should be able to write something like #r "nuget: NetVips.Native.win, *", Windows, or someone more general and correct :)

dotnet/roslyn#50009

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

No branches or pull requests

2 participants