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 packagereference to distribute tools #16

Open
zabrowarnyrafal opened this issue Feb 1, 2018 · 2 comments
Open

Use packagereference to distribute tools #16

zabrowarnyrafal opened this issue Feb 1, 2018 · 2 comments

Comments

@zabrowarnyrafal
Copy link
Member

We can use nuget 4 packagereference facility for tools. In result (with help of condition attribute) we can prepare package containing only static files without code that will be restored with parent package but only when OS platform will sufficient for it

@zabrowarnyrafal
Copy link
Member Author

<PackageReference ... Condition="$(RuntimeIdentifier) = 'win-x64'"> e.g. should work
or whatever critera for Condition you can come up with

Rafał Zabrowarny 21:20
this wont restore Windows related package when i run dotnet on Linux or on OSX?

Robin Sue 21:20
the restore evaluates the condition, if the condition is false it is as if the wasn't specified

Rafał Zabrowarny 21:21
of course if I invert criteria

Robin Sue 21:22
you can also group platform specific PackageReferences together by placing them in a
if necessary, you can also invoke framework methods

@zabrowarnyrafal
Copy link
Member Author

Need POC

@zabrowarnyrafal zabrowarnyrafal added this to the 0.4.0 milestone Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant