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

Install in .net 4.6.2 project #123

Closed
tgiachi opened this issue Aug 18, 2017 · 6 comments · Fixed by #178
Closed

Install in .net 4.6.2 project #123

tgiachi opened this issue Aug 18, 2017 · 6 comments · Fixed by #178

Comments

@tgiachi
Copy link

tgiachi commented Aug 18, 2017

Why when i'm installing in .net 4.6.2. project, install everything of .net standard library?

@michielpost
Copy link
Owner

Yes, that's because Q42.HueApi targets .Net Standard. It's recommended to have a dependency on the NetStandard Metapackage.
Also see: https://stackoverflow.com/questions/43995354/reducing-dependencies-for-a-net-standard-class-library

@tgiachi
Copy link
Author

tgiachi commented Aug 22, 2017

Ok thanks, @michielpost ! Is possibile to generate nuget package with target framework 4.5 leave only Json?

@michielpost
Copy link
Owner

No, I don't think so?

@tgiachi
Copy link
Author

tgiachi commented Aug 22, 2017

Ok, thank you anyway

@leo60228
Copy link
Contributor

@michielpost This issue is somewhat old, but this appears to be possible. Simply change

    <TargetFramework>netstandard2.0</TargetFramework>

in each .csproj to:

    <TargetFrameworks>netstandard2.0;net45</TargetFramework>

This is documented at https://docs.microsoft.com/en-us/dotnet/standard/frameworks#how-to-specify-target-frameworks. I'll submit a PR soon.

@leo60228
Copy link
Contributor

#178

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

Successfully merging a pull request may close this issue.

3 participants