Sharing code between aspnet5 and "old" .net

If you want to share some common code between aspnet5 and regular csproj projects, you basically have three options:

  • create a nuget from the common library and push it to a shared nuget repository
  • use dnu wrap to wrap existing csproj into aspnet5 project.json
  • maintain two versions of your shared project - a project.json for aspnet5 and a csproj for regular .net

The last option is the most error-prone and harder to maintain, so I will just ignore it.

»