Build nuget package with multiple .Net targets

Gregory's Avatar

Gregory

12 Oct, 2016 03:33 AM

What is the easiest/most straightforward way to create a nupkg (nuget package) targeting multiple framework versions? I'd like my package to support .Net 4.5, 4.5.2, 4.6, etc. I didn't see any documentation so I'm assuming I'd have to customize the build process with scripts and maybe have multiple projects for each target. I've never done this before so I'm not exactly sure what the best approach is.

Any help is appreciated.

  1. 1 Posted by Ilya Finkelshte... on 12 Oct, 2016 10:59 PM

    Ilya Finkelshteyn's Avatar

    Hi Gregory,

    Your approach is right, and other customers are going the same - separate projects and scripts for different targets.

    --ilya.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:09 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac