Answer the question
In order to leave comments, you need to log in
How to properly move WebApi models to a separate project for reuse in Xamarin?
Good day!
There are 2 solutions with projects: WebAPI on Asp.NET Core 2 and Xamarin Forms.
The architecture of the projects is as follows:
API Solution
Answer the question
In order to leave comments, you need to log in
If it's not a secret, then why not put everything in one solution? As an alternative, you can use one git repository, inside which there will be two solutions. Each of the solutions will reference the same Data project. It's not as elegant, but it will work.
The best solution, in my opinion, would be to just create a NuGet package under netstandard.
The NuGet package does not have to be published on NuGet.org, any NuGet repository can be used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question