I have created a class library with the target framework .NETCoreApp 1.1 with some objects that are common among my classes.
In a second project, also a class library with the target framework .NETCoreApp 1.1 where I want to include the previous created project dll.
How can I do that? I tried to explicitly add the dll in the references, but when I build the second project I get the following error:
Cannot find project info for 'ProjectPath\ProjectFile.csproj'. This can indicate a missing project reference.
When I check the projects assemblies list I see my dll added there, without the yellow warning icon... What am I doing wrong?
EDIT:
I am currently using Visual Studio 2017.
And this is the csproj of my second project, the one giving the error:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NLog.Web.AspNetCore" Version="4.3.1" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Common">
      <HintPath>..\Common\bin\Release\netcoreapp1.1\Common.dll</HintPath>
    </Reference>
  </ItemGroup>
</Project>
dotnet restore?