title: Creating NuGet package for multiple .NET Framework versions
body: <p>I'm developing a library and want to create NuGet package for multiple versions of .NET Framework. I didn't find any article with full list of actions to do this.</p>
  
  <p>The first option I've tried was creation of bunch of configurations like Release_Net45 and so on. I then edited csproj to correct output directories (lib/net45 and so on) and target framework versions for each configuration. Then I built each configuration. After that I ran nuget pack and package was succesfully created with one warning that one dll was not added since it is already in the package...</p>
  
  <p>Then I've tried to edit csproj to include TargetFrameworks element and elements for package metadata to the PropertyGroup corresponding to the Release configuration. After reloading the project after editing, new group called Dependencies was appeared in the Solution Explorer. I made a try to create package with msbuild /t:pack /p:Configuration=Release in Developer Command Prompt but it was finished with error that there is no pack target. To fix it I added NuGet.Build.Tasks.Pack package and after that the package was built. BUT my configurations suddenly became corrupted when I looking at them in Configuration Manager.</p>
  
  <p>I didn't expect that setting up a package for multiple target frameworks will be such painful :( What is the correct way to do this? Is there any complete guide for this task?</p>