You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
<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
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
The text was updated successfully, but these errors were encountered: