When I created a new universal app project in Visual Studio it created a shared project that let me share code between the Windows Phone 8.1 and Windows 8.1 projects that we
Visual Studio 2017:
Right-click the References or Dependencies item in the Solution Explorer and choose "Add Reference..."
The Reference Manager will open. Click "Shared Project" on the left side of the Reference Manager
Then select your project and click OK.