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 existingcsproj
into aspnet5project.json
- maintain two versions of your shared project - a
project.json
for aspnet5 and acsproj
for regular .net
The last option is the most error-prone and harder to maintain, so I will just ignore it.