Most projects in this repo have a ref directory next to their src that contains the project and source code for a reference assembly.
Reference assemblies contain the public API surface of libraries and are used for ASP.NET Core targeting pack generation.
Run dotnet msbuild /t:GenerateReferenceSource in that project's src directory
Run .\eng\scripts\GenerateProjectList.ps1 from the repository root and dotnet msbuild /t:GenerateReferenceSource in that project's src directory
ref.csproj is automaticaly generated and shouldn't be edited. To set project properties on a reference assembly project place a Directory.Build.props next to it and add the properties there.
Set <HasReferenceAssembly>false</HasReferenceAssembly> in the implementation (src) project and re-run .\eng\scripts\GenerateProjectList.ps1.
Run .\eng\scripts\GenerateReferenceAssemblies.ps1 from repository root.