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

Support multiple target frameworks #6

Open
FarmGeek4Life opened this issue Jun 18, 2019 · 1 comment
Open

Support multiple target frameworks #6

FarmGeek4Life opened this issue Jun 18, 2019 · 1 comment

Comments

@FarmGeek4Life
Copy link

I don't know if you are interested in doing so, but you can modify the updated csproj files to build against multiple target frameworks and create a single NuGet package supporting all of them.

If you are interested in doing so, the changes needed in the csproj files to build against .NET 4.5.1, 4.6.2, and Net Standard 2.0 and create a single NuGet package are:

<TargetFramework>netcoreapp2.0</TargetFramework>

to

<TargetFrameworks>net451;net462;netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>

The full list of supported "Target Framework Moniker" is here

One advantage of this change (especially after doing the same to R.NET) is that developers wouldn't need to update the project to .NET 4.7 or newer to avoid adding all of the Net Standard DLLs to their compilation output (and to all installers, etc.).

@jmp75
Copy link
Collaborator

jmp75 commented Jun 19, 2019

Thank you for this suggestion; I'll see if I can set this up soon. My understanding of targeting monikers is rather ad hoc and patchy as I use .NET less these days. I appreciate the help.

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

No branches or pull requests

2 participants