GaProgMan / OnionArch

A .NET Core demo application which uses the Onion Architecture
MIT License
102 stars 37 forks source link

Data layer could be .NET Standard 2.0 #9

Closed GaProgMan closed 6 years ago

GaProgMan commented 6 years ago

Problem

Currently the Data layer is a .NET Core 2.0 library. This is because of the mapping files which are created there (but consumed in the Repo layer).

This could cause issues if the Data layer were to be used with other .NET Standard compatible frameworks (Xamarin, etc.)

Solution

Move the mappings files to the Repo layer and change the following line in Onion.Data.csproj

<TargetFramework>netcoreapp2.0</TargetFramework>

to make it a .NET Standard 2.0 library.