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

Conditional package references #2612

Closed
yevhen opened this issue Aug 14, 2017 · 2 comments
Closed

Conditional package references #2612

yevhen opened this issue Aug 14, 2017 · 2 comments

Comments

@yevhen
Copy link

yevhen commented Aug 14, 2017

In a mixed solution where some of the projects use new VS17 csproj format and target multiple frameworks (net462/nestandard) conditional references are required for some scenarios, such as referencing System.AppDomain for netstandard but not when building for net46.

Example:

<ItemGroup>
  <PackageReference Include="System.AppDomain" Version="2.0.11"
                    Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'" />
</ItemGroup>

Would be great to have this supported in paket.dependencies and/or paket.references

@TheAngryByrd
Copy link
Contributor

Similar to #2394

@enricosada
Copy link
Collaborator

Closing as pratically a dupe of #2394

@yevhen adding your use case to that issue, work will be tracked in #2394

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

3 participants